Skip to content

Commit

Permalink
Temporarily remove call to issetugid() until it's actually *IMPLEMENTED*
Browse files Browse the repository at this point in the history
in RELENG_2_2. :-)
  • Loading branch information
jkh authored and jkh committed Aug 27, 1997
1 parent 756acbd commit f58751a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/libc/gen/glob.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,10 @@ globtilde(pattern, patbuf, patbuf_len, pglob)

if (((char *) patbuf)[0] == EOS) {
/*
* handle a plain ~ or ~/ by expanding $HOME first (iff
* we're not running setuid or setgid) and then trying
* the password file
* handle a plain ~ or ~/ by expanding $HOME
* first and then trying the password file
*/
if (issetugid() != 0 || (h = getenv("HOME")) == NULL) {
if ((h = getenv("HOME")) == NULL) {
if ((pwd = getpwuid(getuid())) == NULL)
return pattern;
else
Expand Down

0 comments on commit f58751a

Please sign in to comment.