mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 07:11:05 +01:00
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:
parent
309df62fd9
commit
9fcbcd0217
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33664
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user