2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Add OpenBSD malloc options.

This commit is contained in:
Todd C. Miller
2019-10-24 20:04:32 -06:00
parent 76eec78a33
commit c25b6dc7ec
2 changed files with 14 additions and 0 deletions

View File

@@ -1022,6 +1022,13 @@ main(int argc, char *argv[])
int ch;
debug_decl_vars(main, SUDO_DEBUG_MAIN)
#if defined(SUDO_DEVEL) && defined(__OpenBSD__)
{
extern char *malloc_options;
malloc_options = "S";
}
#endif
initprogname(argc > 0 ? argv[0] : "sudo_logsrvd");
setlocale(LC_ALL, "");
bindtextdomain("sudo", LOCALEDIR); /* XXX - add logsrvd domain */

View File

@@ -1129,6 +1129,13 @@ main(int argc, char *argv[])
FILE *fp;
debug_decl_vars(main, SUDO_DEBUG_MAIN)
#if defined(SUDO_DEVEL) && defined(__OpenBSD__)
{
extern char *malloc_options;
malloc_options = "S";
}
#endif
signal(SIGPIPE, SIG_IGN);
initprogname(argc > 0 ? argv[0] : "sendlog");