Move protection code down to handle NL_CAT_LOCALE case too.
This commit is contained in:
parent
c023c260fc
commit
fea9bbdd85
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user