Just use malloc_options "S" on OpenBSD instead of "AFGJPR".

This commit is contained in:
Todd C. Miller
2016-11-25 09:04:00 -07:00
parent 4d06a612f7
commit 1aea3f6e3e
4 changed files with 4 additions and 4 deletions

View File

@@ -194,7 +194,7 @@ main(int argc, char *argv[])
#if defined(SUDO_DEVEL) && defined(__OpenBSD__) #if defined(SUDO_DEVEL) && defined(__OpenBSD__)
{ {
extern char *malloc_options; extern char *malloc_options;
malloc_options = "AFGJPR"; malloc_options = "S";
} }
#endif #endif

View File

@@ -118,7 +118,7 @@ main(int argc, char *argv[])
debug_decl(main, SUDOERS_DEBUG_MAIN) debug_decl(main, SUDOERS_DEBUG_MAIN)
#if defined(SUDO_DEVEL) && defined(__OpenBSD__) #if defined(SUDO_DEVEL) && defined(__OpenBSD__)
malloc_options = "AFGJPR"; malloc_options = "S";
#endif #endif
#if YYDEBUG #if YYDEBUG
sudoersdebug = 1; sudoersdebug = 1;

View File

@@ -143,7 +143,7 @@ main(int argc, char *argv[])
#if defined(SUDO_DEVEL) && defined(__OpenBSD__) #if defined(SUDO_DEVEL) && defined(__OpenBSD__)
{ {
extern char *malloc_options; extern char *malloc_options;
malloc_options = "AFGJPR"; malloc_options = "S";
} }
#endif #endif

View File

@@ -34,7 +34,7 @@ os_init(int argc, char *argv[], char *envp[])
{ {
#ifdef SUDO_DEVEL #ifdef SUDO_DEVEL
extern char *malloc_options; extern char *malloc_options;
malloc_options = "AFGJPR"; malloc_options = "S";
#endif #endif
return os_init_common(argc, argv, envp); return os_init_common(argc, argv, envp);
} }