diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-08-26 12:47:09 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-08-26 12:47:09 +0000 |
| commit | a139916b8878d6bd45bcd070edba4a2af115d2e4 (patch) | |
| tree | 2ca5ad588369d9b8332fe0a287dfa858d531ee38 /lib/libtermcap | |
| parent | d3114049c1c7352ecfd1b2ad9236e14dd16af15c (diff) | |
Notes
Diffstat (limited to 'lib/libtermcap')
| -rw-r--r-- | lib/libtermcap/termcap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libtermcap/termcap.c b/lib/libtermcap/termcap.c index fc0314d6f7a64..96e07e55f139e 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 == ':') { |
