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-)
This commit is contained in:
John Birrell 1998-02-20 07:54:56 +00:00
parent 309df62fd9
commit 9fcbcd0217
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33664

View File

@ -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)