diff options
author | Tim J. Robbins <tjr@FreeBSD.org> | 2003-10-29 10:45:01 +0000 |
---|---|---|
committer | Tim J. Robbins <tjr@FreeBSD.org> | 2003-10-29 10:45:01 +0000 |
commit | 4539e95a0f9a1b9806306fd0a5997a58208f5c9f (patch) | |
tree | 0c4f70781f934d276b897460f13e497bca19523d /lib/libc/locale/setlocale.c | |
parent | 4f35c8461f3301a1b3fb9d43097e6fabee395787 (diff) | |
download | src-4539e95a0f9a1b9806306fd0a5997a58208f5c9f.tar.gz src-4539e95a0f9a1b9806306fd0a5997a58208f5c9f.zip |
Remove incomplete support for running FreeBSD userland on old NetBSD kernels
lacking the issetugid() and utrace() syscalls.
Notes
Notes:
svn path=/head/; revision=121667
Diffstat (limited to 'lib/libc/locale/setlocale.c')
-rw-r--r-- | lib/libc/locale/setlocale.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c index 70e727861f7b..6829ae5bf2e3 100644 --- a/lib/libc/locale/setlocale.c +++ b/lib/libc/locale/setlocale.c @@ -308,11 +308,7 @@ __detect_path_locale(void) if (_PathLocale == NULL) { char *p = getenv("PATH_LOCALE"); - if (p != NULL -#ifndef __NETBSD_SYSCALLS - && !issetugid() -#endif - ) { + if (p != NULL && !issetugid()) { if (strlen(p) + 1/*"/"*/ + ENCODING_LEN + 1/*"/"*/ + CATEGORY_LEN >= PATH_MAX) return (ENAMETOOLONG); |