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.
This commit is contained in:
David Greenman 1997-02-05 09:53:25 +00:00
parent 767c0e7bdc
commit 5979500afc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22288

View file

@ -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);