Whamcloud - gitweb
Fix typo so that we actually ignore environment variables when gid != egid.
authorTheodore Ts'o <tytso@mit.edu>
Sat, 16 Apr 2005 17:56:03 +0000 (13:56 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 16 Apr 2005 17:56:03 +0000 (13:56 -0400)
lib/blkid/cache.c
lib/ext2fs/test_io.c
lib/ss/pager.c

index 5813bbc..0ecaa2d 100644 (file)
@@ -33,7 +33,7 @@ int blkid_debug_mask = 0;
 
 static char *safe_getenv(const char *arg)
 {
-       if ((getuid() != geteuid()) || (getgid() != getgid()))
+       if ((getuid() != geteuid()) || (getgid() != getegid()))
                return NULL;
 #if HAVE_PRCTL
        if (prctl(PR_GET_DUMPABLE) == 0)
index f4d9b99..3720f0a 100644 (file)
@@ -142,7 +142,7 @@ static void test_abort(io_channel channel, unsigned long block)
 
 static char *safe_getenv(const char *arg)
 {
-       if ((getuid() != geteuid()) || (getgid() != getgid()))
+       if ((getuid() != geteuid()) || (getgid() != getegid()))
                return NULL;
 #if HAVE_PRCTL
        if (prctl(PR_GET_DUMPABLE) == 0)
index 4030c7f..9aaa72a 100644 (file)
@@ -43,7 +43,7 @@ extern char *getenv PROTOTYPE((const char *));
 
 char *ss_safe_getenv(const char *arg)
 {
-       if ((getuid() != geteuid()) || (getgid() != getgid()))
+       if ((getuid() != geteuid()) || (getgid() != getegid()))
                return NULL;
 #if HAVE_PRCTL
        if (prctl(PR_GET_DUMPABLE) == 0)