diff options
Diffstat (limited to 'ssh-agent.c')
-rw-r--r-- | ssh-agent.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ssh-agent.c b/ssh-agent.c index a335ea33d..38879335d 100644 --- a/ssh-agent.c +++ b/ssh-agent.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-agent.c,v 1.204 2015/07/08 20:24:02 markus Exp $ */ | 1 | /* $OpenBSD: ssh-agent.c,v 1.205 2015/12/01 23:29:24 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -1402,6 +1402,9 @@ skip: | |||
1402 | signal(SIGTERM, cleanup_handler); | 1402 | signal(SIGTERM, cleanup_handler); |
1403 | nalloc = 0; | 1403 | nalloc = 0; |
1404 | 1404 | ||
1405 | if (pledge("stdio unix exec", NULL) != 0) | ||
1406 | fatal("%s: pledge: %s", __progname, strerror(errno)); | ||
1407 | |||
1405 | while (1) { | 1408 | while (1) { |
1406 | prepare_select(&readsetp, &writesetp, &max_fd, &nalloc, &tvp); | 1409 | prepare_select(&readsetp, &writesetp, &max_fd, &nalloc, &tvp); |
1407 | result = select(max_fd + 1, readsetp, writesetp, NULL, tvp); | 1410 | result = select(max_fd + 1, readsetp, writesetp, NULL, tvp); |