summaryrefslogtreecommitdiffstats
path: root/lib/libc/nls/msgcat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/nls/msgcat.c')
-rw-r--r--lib/libc/nls/msgcat.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/nls/msgcat.c b/lib/libc/nls/msgcat.c
index c90cefb..9d2d0c5 100644
--- a/lib/libc/nls/msgcat.c
+++ b/lib/libc/nls/msgcat.c
@@ -1,4 +1,4 @@
-/* $Id: msgcat.c,v 1.10 1997/05/10 04:28:17 ache Exp $ */
+/* $Id: msgcat.c,v 1.11 1997/05/10 04:40:40 ache Exp $ */
/***********************************************************
Copyright 1990, by Alfalfa Software Incorporated, Cambridge, Massachusetts.
@@ -101,7 +101,11 @@ int type;
} else {
if ((lang = (char *) getenv("LANG")) == NULL)
lang = "C";
- if ((nlspath = (char *) getenv("NLSPATH")) == NULL || issetugid())
+ if ((nlspath = (char *) getenv("NLSPATH")) == NULL
+#ifndef __NETBSD_SYSCALLS
+ || issetugid()
+#endif
+ )
nlspath = "/usr/share/nls/%L/%N.cat:/usr/share/nls/%N/%L:/usr/local/share/nls/%L/%N.cat:/usr/local/share/nls/%N/%L";
len = strlen(nlspath);
OpenPOWER on IntegriCloud