Move protection code down to handle NL_CAT_LOCALE case too.

This commit is contained in:
ache 2000-09-01 11:09:34 +00:00
parent c023c260fc
commit fea9bbdd85

View File

@ -108,10 +108,11 @@ int type;
if (type == NL_CAT_LOCALE)
lang = setlocale(LC_MESSAGES, NULL);
else {
if ((lang = (char *) getenv("LANG")) == NULL ||
strchr(lang, '/') != NULL)
if ((lang = (char *) getenv("LANG")) == NULL)
lang = "C";
}
if (strchr(lang, '/') != NULL)
lang = "C";
if ((nlspath = (char *) getenv("NLSPATH")) == NULL
#ifndef __NETBSD_SYSCALLS
|| issetugid()