Don't disable the creation of core files

Creation of core files can be disabled in the OS environment such
as by using the ulimit program.
master
Mukund Sivaraman 2008-12-01 14:40:26 +00:00
parent a37a81db2d
commit 448c19077c
1 changed files with 0 additions and 12 deletions

View File

@ -176,18 +176,6 @@ main(int argc, char **argv)
struct group *thisgroup = NULL;
FILE *config_file;
/*
* Disable the creation of CORE files right up front.
*/
#if defined(HAVE_SETRLIMIT) && defined(NDEBUG)
struct rlimit core_limit = { 0, 0 };
if (setrlimit(RLIMIT_CORE, &core_limit) < 0) {
fprintf(stderr, "%s: Could not set the core limit to zero.\n",
argv[0]);
exit(EX_SOFTWARE);
}
#endif /* HAVE_SETRLIMIT */
/* Only allow u+rw bits. This may be required for some versions
* of glibc so that mkstemp() doesn't make us vulnerable.
*/