summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1997-02-05 09:53:25 +0000
committerDavid Greenman <dg@FreeBSD.org>1997-02-05 09:53:25 +0000
commit5979500afccc3b883ea5dc7602f2037535c26450 (patch)
tree69349a45e79e136d217b6acc7a634806a1ed26c3 /lib/libc
parent767c0e7bdc3bb3c9d172cf1a6b3dfeefa7f71b6f (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/locale/setlocale.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c
index 9c0e341bbacc..6d6041d1b188 100644
--- a/lib/libc/locale/setlocale.c
+++ b/lib/libc/locale/setlocale.c
@@ -232,17 +232,8 @@ loadlocale(category)
char *new = new_categories[category];
char *old = current_categories[category];
- if (!_PathLocale) {
- if ( !(ret = getenv("PATH_LOCALE"))
- || getuid() != geteuid()
- || getgid() != getegid()
- )
- _PathLocale = _PATH_LOCALE;
- else if ( strlen(ret) + 45 > PATH_MAX
- || !(_PathLocale = strdup(ret))
- )
- return (NULL);
- }
+ if (!_PathLocale)
+ _PathLocale = _PATH_LOCALE;
if (strcmp(new, old) == 0)
return (old);