diff --git a/libmisc/limits.c b/libmisc/limits.c index 372a8c3b..846dd54a 100644 --- a/libmisc/limits.c +++ b/libmisc/limits.c @@ -246,13 +246,11 @@ static int do_user_limits (const char *buf, const char *name) retval |= setrlimit_value (RLIMIT_AS, pp, 1024); break; #endif -#ifdef RLIMIT_CORE case 'c': case 'C': /* RLIMIT_CORE - max core file size (KB) */ retval |= setrlimit_value (RLIMIT_CORE, pp, 1024); break; -#endif #ifdef RLIMIT_DATA case 'd': case 'D': diff --git a/libmisc/pwd_init.c b/libmisc/pwd_init.c index 3c3d96e7..eb2bddf1 100644 --- a/libmisc/pwd_init.c +++ b/libmisc/pwd_init.c @@ -28,10 +28,9 @@ void pwd_init (void) { struct rlimit rlim; -#ifdef RLIMIT_CORE rlim.rlim_cur = rlim.rlim_max = 0; setrlimit (RLIMIT_CORE, &rlim); -#endif + rlim.rlim_cur = rlim.rlim_max = RLIM_INFINITY; #ifdef RLIMIT_AS setrlimit (RLIMIT_AS, &rlim);