summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/lib/roken/issuid.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/heimdal/lib/roken/issuid.c')
-rw-r--r--crypto/heimdal/lib/roken/issuid.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/crypto/heimdal/lib/roken/issuid.c b/crypto/heimdal/lib/roken/issuid.c
index 910d850..46bde77 100644
--- a/crypto/heimdal/lib/roken/issuid.c
+++ b/crypto/heimdal/lib/roken/issuid.c
@@ -33,17 +33,18 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
-RCSID("$Id: issuid.c,v 1.4 2001/08/27 23:08:34 assar Exp $");
+RCSID("$Id: issuid.c 15131 2005-05-13 07:42:03Z lha $");
#endif
#include "roken.h"
-int
+int ROKEN_LIB_FUNCTION
issuid(void)
{
#if defined(HAVE_ISSETUGID)
return issetugid();
-#endif
+#else /* !HAVE_ISSETUGID */
+
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
if(getuid() != geteuid())
return 1;
@@ -52,5 +53,7 @@ issuid(void)
if(getgid() != getegid())
return 2;
#endif
+
return 0;
+#endif /* HAVE_ISSETUGID */
}
OpenPOWER on IntegriCloud