summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/glob.c
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-02-20 07:54:56 +0000
committerjb <jb@FreeBSD.org>1998-02-20 07:54:56 +0000
commitf80a6bb91d65e6061adc74022d65a4ed19299205 (patch)
tree2482ce9f556902a280315231059358f69b521124 /lib/libc/gen/glob.c
parent7dedbef2efc087b86199ee002f14acaf9b70f118 (diff)
downloadFreeBSD-src-f80a6bb91d65e6061adc74022d65a4ed19299205.zip
FreeBSD-src-f80a6bb91d65e6061adc74022d65a4ed19299205.tar.gz
NetBSD kernels don't have issetugid(), so #ifdef this out when
building FreeBSD's libc to run with a NetBSD kernel. We'll get to the alpha kernel later, I promise. 8-)
Diffstat (limited to 'lib/libc/gen/glob.c')
-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