summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-agent.c
diff options
context:
space:
mode:
authordoug <doug@openbsd.org>2015-12-02 08:30:50 +0000
committerdoug <doug@openbsd.org>2015-12-02 08:30:50 +0000
commit8f661d7ff926dee22f30aa97705d426b6eeef068 (patch)
tree6a803703e3747b37966e9fafde3ea5f7d1f63e08 /usr.bin/ssh/ssh-agent.c
parentSimplify fxp tx dma handling by using m_defrag instead of rolling our own (diff)
downloadwireguard-openbsd-8f661d7ff926dee22f30aa97705d426b6eeef068.tar.xz
wireguard-openbsd-8f661d7ff926dee22f30aa97705d426b6eeef068.zip
Add "cpath" to the ssh-agent pledge so the cleanup handler can unlink().
ok djm@
Diffstat (limited to 'usr.bin/ssh/ssh-agent.c')
-rw-r--r--usr.bin/ssh/ssh-agent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-agent.c b/usr.bin/ssh/ssh-agent.c
index 6b15d027ed0..9a3baa24051 100644
--- a/usr.bin/ssh/ssh-agent.c
+++ b/usr.bin/ssh/ssh-agent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-agent.c,v 1.206 2015/12/02 08:00:58 djm Exp $ */
+/* $OpenBSD: ssh-agent.c,v 1.207 2015/12/02 08:30:50 doug Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1371,7 +1371,7 @@ skip:
signal(SIGTERM, cleanup_handler);
nalloc = 0;
- if (pledge("stdio unix exec proc", NULL) != 0)
+ if (pledge("stdio cpath unix exec proc", NULL) != 0)
fatal("%s: pledge: %s", __progname, strerror(errno));
while (1) {