aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-02-20 07:54:56 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-02-20 07:54:56 +0000
commit9fcbcd02176405d72c6c3fa1ba32f93e990e1166 (patch)
treec14b9aff930437cab9614b707bc8cd9be7f45175 /lib
parent309df62fd91f832000da36200042419d3a3777e6 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/glob.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/gen/glob.c b/lib/libc/gen/glob.c
index df3cbc26c89d..09dfd7a7cb54 100644
--- a/lib/libc/gen/glob.c
+++ b/lib/libc/gen/glob.c
@@ -362,7 +362,11 @@ globtilde(pattern, patbuf, patbuf_len, pglob)
* we're not running setuid or setgid) and then trying
* the password file
*/
- if (issetugid() != 0 || (h = getenv("HOME")) == NULL) {
+ if (
+#ifndef __NETBSD_SYSCALLS
+ issetugid() != 0 ||
+#endif
+ (h = getenv("HOME")) == NULL) {
if (((h = getlogin()) != NULL &&
(pwd = getpwnam(h)) != NULL) ||
(pwd = getpwuid(getuid())) != NULL)