summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libtermcap/termcap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libtermcap/termcap.c b/lib/libtermcap/termcap.c
index fc0314d..96e07e5 100644
--- a/lib/libtermcap/termcap.c
+++ b/lib/libtermcap/termcap.c
@@ -114,10 +114,10 @@ tgetent(char *bp, const char *name)
else /* user-defined name in TERMCAP */
strncpy(pathbuf, cp, PBUFSIZ); /* still can be tokenized */
pathbuf[PBUFSIZ - 1] = '\0';
-#if 0
- if (issetugid())
+
+ /* XXX Should really be issetguid(), but we don't have that */
+ if (getuid() != geteuid() || getgid() != getegid())
strcpy(pathbuf, _PATH_DEF_SEC);
-#endif
*fname++ = pathbuf; /* tokenize path into vector of names */
while (*++p)
if (*p == ' ' || *p == ':') {
OpenPOWER on IntegriCloud