diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-08-22 11:14:53 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-08-22 11:14:53 +0000 |
| commit | 7b759a7f68b162be3fe5739fdb301f847f4b9e42 (patch) | |
| tree | 1e15e6fb67738929752970936c8a791dd86dada6 /lib | |
| parent | 463695c8565735a4d8f37efa4d82f608d053ba33 (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libtermcap/termcap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libtermcap/termcap.c b/lib/libtermcap/termcap.c index 96e07e55f139..4b98c1b94353 100644 --- a/lib/libtermcap/termcap.c +++ b/lib/libtermcap/termcap.c @@ -115,9 +115,9 @@ tgetent(char *bp, const char *name) strncpy(pathbuf, cp, PBUFSIZ); /* still can be tokenized */ pathbuf[PBUFSIZ - 1] = '\0'; - /* XXX Should really be issetguid(), but we don't have that */ - if (getuid() != geteuid() || getgid() != getegid()) + if (issetugid()) strcpy(pathbuf, _PATH_DEF_SEC); + *fname++ = pathbuf; /* tokenize path into vector of names */ while (*++p) if (*p == ' ' || *p == ':') { |
