diff --git a/libmisc/limits.c b/libmisc/limits.c index c6f4fa48..81b56b64 100644 --- a/libmisc/limits.c +++ b/libmisc/limits.c @@ -282,13 +282,11 @@ static int do_user_limits (const char *buf, const char *name) retval |= setrlimit_value (RLIMIT_MEMLOCK, pp, 1024); break; #endif -#ifdef RLIMIT_NOFILE case 'n': case 'N': /* RLIMIT_NOFILE - max number of open files */ retval |= setrlimit_value (RLIMIT_NOFILE, pp, 1); break; -#endif #ifdef RLIMIT_RTPRIO case 'o': case 'O': diff --git a/libmisc/pwd_init.c b/libmisc/pwd_init.c index 70453d2d..c7cffba3 100644 --- a/libmisc/pwd_init.c +++ b/libmisc/pwd_init.c @@ -37,9 +37,7 @@ void pwd_init (void) setrlimit (RLIMIT_CPU, &rlim); setrlimit (RLIMIT_DATA, &rlim); setrlimit (RLIMIT_FSIZE, &rlim); -#ifdef RLIMIT_NOFILE setrlimit (RLIMIT_NOFILE, &rlim); -#endif #ifdef RLIMIT_RSS setrlimit (RLIMIT_RSS, &rlim); #endif