diff options
author | dg <dg@FreeBSD.org> | 1997-02-05 09:53:25 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1997-02-05 09:53:25 +0000 |
commit | 70bc38a8e75ac40e1439f64caf0fa36f941eb222 (patch) | |
tree | 69349a45e79e136d217b6acc7a634806a1ed26c3 /lib | |
parent | 11f714d28c11f819331d036b8d6dde659ef48480 (diff) | |
download | FreeBSD-src-70bc38a8e75ac40e1439f64caf0fa36f941eb222.zip FreeBSD-src-70bc38a8e75ac40e1439f64caf0fa36f941eb222.tar.gz |
Killed getenv of PATH_LOCALE per Andrey's suggestion. It was intended
for debugging locale stuff, but was rarely if ever used...and of course
just bit a big chunk out of our collective hind-ends.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/locale/setlocale.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c index 9c0e341..6d6041d 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); |