From: Darren Tucker Date: Mon, 28 Oct 2019 06:05:36 +0000 (+1100) Subject: Only use RLIMIT_NOFILE if it's defined. X-Git-Tag: V_8_2_P1~394 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7694e9d2fb5785bbdd0920dce7a160bd79feaf00;p=thirdparty%2Fopenssh-portable.git Only use RLIMIT_NOFILE if it's defined. --- diff --git a/ssh-agent.c b/ssh-agent.c index 9c6680a25..e500591a9 100644 --- a/ssh-agent.c +++ b/ssh-agent.c @@ -1113,8 +1113,10 @@ main(int ac, char **av) platform_disable_tracing(0); /* strict=no */ +#ifdef RLIMIT_NOFILE if (getrlimit(RLIMIT_NOFILE, &rlim) == -1) fatal("%s: getrlimit: %s", __progname, strerror(errno)); +#endif __progname = ssh_get_progname(av[0]); seed_rng();