(issuid): change the #ifdef order to avoid unreachable code warning.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15131 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -43,7 +43,8 @@ issuid(void)
|
|||||||
{
|
{
|
||||||
#if defined(HAVE_ISSETUGID)
|
#if defined(HAVE_ISSETUGID)
|
||||||
return issetugid();
|
return issetugid();
|
||||||
#endif
|
#else /* !HAVE_ISSETUGID */
|
||||||
|
|
||||||
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
|
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
|
||||||
if(getuid() != geteuid())
|
if(getuid() != geteuid())
|
||||||
return 1;
|
return 1;
|
||||||
@@ -52,5 +53,7 @@ issuid(void)
|
|||||||
if(getgid() != getegid())
|
if(getgid() != getegid())
|
||||||
return 2;
|
return 2;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
#endif /* HAVE_ISSETUGID */
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user