Fix debug message when prctl(PR_SET_DUMPABLE, 0, 0, 0, 0) fails.

GitHub issue #101
This commit is contained in:
Todd C. Miller
2021-05-03 12:40:23 -06:00
parent 109a0331a5
commit 51cbc626f8

View File

@@ -210,7 +210,7 @@ disable_coredump(void)
} }
if (prctl(PR_SET_DUMPABLE, 0, 0, 0, 0) == -1) { if (prctl(PR_SET_DUMPABLE, 0, 0, 0, 0) == -1) {
sudo_debug_printf(SUDO_DEBUG_ERROR|SUDO_DEBUG_ERRNO, sudo_debug_printf(SUDO_DEBUG_ERROR|SUDO_DEBUG_ERRNO,
"prctl(PR_SET_DUMPABLE, %d, 0, 0, 0)", dumpflag); "prctl(PR_SET_DUMPABLE, 0, 0, 0, 0)");
} }
#endif /* __linux__ */ #endif /* __linux__ */
coredump_disabled = true; coredump_disabled = true;