mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-02 07:15:27 +00:00
Add OpenBSD malloc options.
This commit is contained in:
@@ -1022,6 +1022,13 @@ main(int argc, char *argv[])
|
|||||||
int ch;
|
int ch;
|
||||||
debug_decl_vars(main, SUDO_DEBUG_MAIN)
|
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");
|
initprogname(argc > 0 ? argv[0] : "sudo_logsrvd");
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
bindtextdomain("sudo", LOCALEDIR); /* XXX - add logsrvd domain */
|
bindtextdomain("sudo", LOCALEDIR); /* XXX - add logsrvd domain */
|
||||||
|
@@ -1129,6 +1129,13 @@ main(int argc, char *argv[])
|
|||||||
FILE *fp;
|
FILE *fp;
|
||||||
debug_decl_vars(main, SUDO_DEBUG_MAIN)
|
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);
|
signal(SIGPIPE, SIG_IGN);
|
||||||
|
|
||||||
initprogname(argc > 0 ? argv[0] : "sendlog");
|
initprogname(argc > 0 ? argv[0] : "sendlog");
|
||||||
|
Reference in New Issue
Block a user