On Fri, 13 Feb 2004, Peter Bonivart wrote:
; I have to disagree. The "id -u" problem with Solaris is still in that
; snapshot, I just tried it. I think you mentioned earlier that you use
; GNU id and you probably have that in your path so it works but for the
; rest of us it doesn't. I would like /usr/xpg4/bin/id to be used when
; it's compiled on Solaris. It's standard and it supports -u.

The problem is that this utility isn't standard on Solaris, it's part
of an extended compatible utility set which may not be taken forwards
into Solaris 10. Can we not find a different way of doing this check
that will work on all systems? IP Filter does it like:

 @if [ `id|sed -e 's/^.[^(]*(\([^)]*\)).*/\1/'` != root ] ; then \

which is nasty, but /probably/ portable.

Andy



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to