Whamcloud - gitweb
Fix false positives from valgrind: prctl(PR_GET_DUMPABLE)
[tools/e2fsprogs.git] / lib / ext2fs / test_io.c
index 2d42617..03d63ce 100644 (file)
@@ -145,11 +145,11 @@ static char *safe_getenv(const char *arg)
        if ((getuid() != geteuid()) || (getgid() != getegid()))
                return NULL;
 #if HAVE_PRCTL
-       if (prctl(PR_GET_DUMPABLE) == 0)
+       if (prctl(PR_GET_DUMPABLE, 0, 0, 0, 0) == 0)
                return NULL;
 #else
 #if (defined(linux) && defined(SYS_prctl))
-       if (syscall(SYS_prctl, PR_GET_DUMPABLE) == 0)
+       if (syscall(SYS_prctl, PR_GET_DUMPABLE, 0, 0, 0, 0) == 0)
                return NULL;
 #endif
 #endif