[Libsysio-commit] HEAD: libsysio/include creds.h
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2007-11-20 17:31:35
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv24859/include Modified Files: creds.h Log Message: if _SYSIO_ROOT_UID was not defined then _sysio_is_root was also not defined. Fixed. It just replaces with a zero (not root), now. Index: creds.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/creds.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -b -B -p -r1.2 -r1.3 --- creds.h 29 Jun 2007 15:32:39 -0000 1.2 +++ creds.h 20 Nov 2007 17:31:29 -0000 1.3 @@ -62,11 +62,13 @@ struct creds { }; -#ifdef _SYSIO_ROOT_UID /* * Is caller the superuser? */ +#ifdef _SYSIO_ROOT_UID #define _sysio_is_root(_crp) \ ((_crp)->creds_uid == _SYSIO_ROOT_UID) +#else + (0) #endif #endif |