diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2000-12-27 04:57:41 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2000-12-27 04:57:41 +0000 |
commit | 2c467a20f4f82000908b7c3d158e8a7960d3bad1 (patch) | |
tree | 7a41adf856303d56e5ed5788c1f1c7d394302235 /ssh-agent.c | |
parent | 3deda8b091e571f5577ae50b75b89a21caed6aee (diff) | |
download | openssh-git-2c467a20f4f82000908b7c3d158e8a7960d3bad1.tar.gz |
20001227
- (bal) Typo in configure.in: entut?ent should be endut?ent. Suggested by
Takumi Yamane <yamtak@b-session.com>
- (bal) Checks for getrlimit(), sysconf(), and setdtablesize(). Patch
by Corinna Vinschen <vinschen@redhat.com>
Diffstat (limited to 'ssh-agent.c')
-rw-r--r-- | ssh-agent.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ssh-agent.c b/ssh-agent.c index 9c0a583e..55704e49 100644 --- a/ssh-agent.c +++ b/ssh-agent.c @@ -674,7 +674,9 @@ main(int ac, char **av) fd_set readset, writeset; int sock, c_flag = 0, k_flag = 0, s_flag = 0, ch; struct sockaddr_un sunaddr; +#ifdef HAVE_SETRLIMIT struct rlimit rlim; +#endif pid_t pid; char *shell, *format, *pidstr, pidstrbuf[1 + 3 * sizeof pid]; extern int optind; @@ -805,12 +807,14 @@ main(int ac, char **av) close(1); close(2); +#ifdef HAVE_SETRLIMIT /* deny core dumps, since memory contains unencrypted private keys */ rlim.rlim_cur = rlim.rlim_max = 0; if (setrlimit(RLIMIT_CORE, &rlim) < 0) { perror("setrlimit rlimit_core failed"); cleanup_exit(1); } +#endif if (setsid() == -1) { perror("setsid"); cleanup_exit(1); |