diff options
author | ache <ache@FreeBSD.org> | 1997-08-31 08:37:28 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-08-31 08:37:28 +0000 |
commit | 5457a037a5870f7080f42dcc59f778857eafa01d (patch) | |
tree | 23652148c4b5d6331dc36327824daf4bcf0cae6a /lib/libtermcap/termcap.c | |
parent | 0b3a12b83eb2feac881bc220304736c7fc61556a (diff) | |
download | FreeBSD-src-5457a037a5870f7080f42dcc59f778857eafa01d.zip FreeBSD-src-5457a037a5870f7080f42dcc59f778857eafa01d.tar.gz |
Restore back issetugid() usage and bump major number
Diffstat (limited to 'lib/libtermcap/termcap.c')
-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 96e07e5..4b98c1b 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 == ':') { |