From 9fcbcd02176405d72c6c3fa1ba32f93e990e1166 Mon Sep 17 00:00:00 2001 From: John Birrell Date: Fri, 20 Feb 1998 07:54:56 +0000 Subject: [PATCH] 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-) --- lib/libc/gen/glob.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)