[openssh-commits] [openssh] 06/06: Only use RLIMIT_NOFILE if it's defined.

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Oct 28 19:03:03 AEDT 2019


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 7694e9d2fb5785bbdd0920dce7a160bd79feaf00
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Mon Oct 28 17:05:36 2019 +1100

    Only use RLIMIT_NOFILE if it's defined.
---
 ssh-agent.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ssh-agent.c b/ssh-agent.c
index 9c6680a2..e500591a 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();

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list