summaryrefslogtreecommitdiffstats
path: root/lib/libc/nls
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1997-03-25 05:36:37 +0000
committerimp <imp@FreeBSD.org>1997-03-25 05:36:37 +0000
commiteb2ae16f67ffb818cdd2c129d8c2f75e714050bf (patch)
tree68402eb4956947ed2ec81b42e47c529e00bb485d /lib/libc/nls
parentf8040b7f543f2c249bf500a781110b4d4792b918 (diff)
downloadFreeBSD-src-eb2ae16f67ffb818cdd2c129d8c2f75e714050bf.zip
FreeBSD-src-eb2ae16f67ffb818cdd2c129d8c2f75e714050bf.tar.gz
Restricting $LANG was a really bad idea
Pointed out by: Everybody but Jordan.
Diffstat (limited to 'lib/libc/nls')
-rw-r--r--lib/libc/nls/msgcat.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/nls/msgcat.c b/lib/libc/nls/msgcat.c
index 9af5b49..69c6316 100644
--- a/lib/libc/nls/msgcat.c
+++ b/lib/libc/nls/msgcat.c
@@ -1,4 +1,4 @@
-/* $Id: msgcat.c,v 1.7 1997/02/22 15:00:50 peter Exp $ */
+/* $Id: msgcat.c,v 1.8 1997/03/24 06:15:07 imp Exp $ */
/***********************************************************
Copyright 1990, by Alfalfa Software Incorporated, Cambridge, Massachusetts.
@@ -99,9 +99,7 @@ int type;
catpath = name;
if (stat(catpath, &sbuf)) return(0);
} else {
- /* XXX Should really be issetguid(), but we don't have that */
- if ((lang = (char *) getenv("LANG")) == NULL ||
- getuid() != geteuid() || getgid() != getegid())
+ if ((lang = (char *) getenv("LANG")) == NULL)
lang = "C";
/* XXX Should really be issetguid(), but we don't have that */
if ((nlspath = (char *) getenv("NLSPATH")) == NULL ||
OpenPOWER on IntegriCloud