]> granicus.if.org Git - sudo/commitdiff
remove call to issetugid()
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 7 Oct 2004 20:23:06 +0000 (20:23 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 7 Oct 2004 20:23:06 +0000 (20:23 +0000)
glob.c

diff --git a/glob.c b/glob.c
index fec9b9c6106d06cfab6d82a1febb9cbce8924ba8..09cecc0ad649caa3cb4e5e0931a06365ce1088d6 100644 (file)
--- a/glob.c
+++ b/glob.c
@@ -384,7 +384,7 @@ globtilde(pattern, patbuf, patbuf_len, pglob)
                 * 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