From a139916b8878d6bd45bcd070edba4a2af115d2e4 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Tue, 26 Aug 1997 12:47:09 +0000 Subject: [PATCH] Temp restore of rev 1.9 --- lib/libtermcap/termcap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libtermcap/termcap.c b/lib/libtermcap/termcap.c index fc0314d6f7a..96e07e55f13 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 == ':') {