]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
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 5813bbc5f23e79f74c6547c4b8414733f7b053f8..0ecaa2d35806baad957eb0abb2336facbb8e1ce7 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 f4d9b995e623d46160f8f308c8f20975e1b090bf..3720f0a9db4c9bcaefbf2808da037ee95104ec9b 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 4030c7f76941fe003d421bd18d2cf9a8a1a2601c..9aaa72a412fac5a3a271ee1deba8bef12df490f1 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)