diff options
author | ache <ache@FreeBSD.org> | 1997-08-22 11:14:53 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-08-22 11:14:53 +0000 |
commit | 5908feb9fa35c8de5569ea1c9abf4d8fd6e80069 (patch) | |
tree | 017f448e84ee5cc431875a22dec867814ae4f54c /lib/libtermcap | |
parent | df680a3c7be1a15b94ed6c6a9c968a7f940ca5e7 (diff) | |
download | FreeBSD-src-5908feb9fa35c8de5569ea1c9abf4d8fd6e80069.zip FreeBSD-src-5908feb9fa35c8de5569ea1c9abf4d8fd6e80069.tar.gz |
Replace uids comparison by issetugid() call
Diffstat (limited to 'lib/libtermcap')
-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 == ':') { |