mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2025-01-10 10:33:32 +08:00
Fix typo so that we actually ignore environment variables when gid != egid.
This commit is contained in:
parent
5e91614349
commit
09f3eba28a
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user