summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-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 df3cbc2..09dfd7a 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)
OpenPOWER on IntegriCloud