if ( (geteuid() != getuid()) ) {
It's not that simple to check for elevated privs in a world with
saved setids and other forms of privilege manipulation - issetugid() is
useful if it's available - for instance see:
http://cgit.freedesktop.org/xorg/lib/libX11/tree/src/xlibi18n/lcFile.c#n234
--
-Alan Coopersmith- alan.coopersm...@oracle.com
Oracle Solaris Platform Engineering: X Window System
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel