aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/locale/setlocale.c
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2003-10-29 10:45:01 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2003-10-29 10:45:01 +0000
commit4539e95a0f9a1b9806306fd0a5997a58208f5c9f (patch)
tree0c4f70781f934d276b897460f13e497bca19523d /lib/libc/locale/setlocale.c
parent4f35c8461f3301a1b3fb9d43097e6fabee395787 (diff)
downloadsrc-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.c6
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);