diff options
author | Hans Insulander <hin@cvs.openbsd.org> | 2002-06-07 02:13:04 +0000 |
---|---|---|
committer | Hans Insulander <hin@cvs.openbsd.org> | 2002-06-07 02:13:04 +0000 |
commit | 0af1c7e0edcac769c7408abf05be4b32de3049dc (patch) | |
tree | b68e84e892e4edbd3fe7673afef84eaca4588d2b | |
parent | e10a9d7dd3a23e7693c1e7e3ecfa285bb5980621 (diff) |
Use issetugid() instead of the wrapper called issuid() in libroken.
-rw-r--r-- | kerberosIV/src/lib/kafs/afssys.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kerberosIV/src/lib/kafs/afssys.c b/kerberosIV/src/lib/kafs/afssys.c index ccea18e21b6..2e9fc38a0f7 100644 --- a/kerberosIV/src/lib/kafs/afssys.c +++ b/kerberosIV/src/lib/kafs/afssys.c @@ -33,7 +33,7 @@ #include "kafs_locl.h" -RCSID("$KTH: afssys.c,v 1.65 1999/12/02 16:58:40 joda Exp $"); +RCSID("$KTH: afssys.c,v 1.65.2.1 2000/06/23 03:27:23 assar Exp $"); int _kafs_debug; /* this should be done in a better way */ @@ -71,7 +71,7 @@ try_aix(void) /* * If we are root or running setuid don't trust AFSLIBPATH! */ - if (getuid() != 0 && !issuid() && (p = getenv("AFSLIBPATH")) != NULL) + if (getuid() != 0 && !issetugid() && (p = getenv("AFSLIBPATH")) != NULL) strlcpy(path, p, sizeof(path)); else snprintf(path, sizeof(path), "%s/afslib.so", LIBDIR); @@ -113,6 +113,9 @@ map_syscall_name_to_number (const char *str, int *res) if (f == NULL) return -1; while (fgets (buf, sizeof(buf), f) != NULL) { + if (buf[0] == '#') + continue; + if (strncmp (str, buf, str_len) == 0) { char *begptr = buf + str_len; char *endptr; |