From 8f661d7ff926dee22f30aa97705d426b6eeef068 Mon Sep 17 00:00:00 2001 From: doug Date: Wed, 2 Dec 2015 08:30:50 +0000 Subject: Add "cpath" to the ssh-agent pledge so the cleanup handler can unlink(). ok djm@ --- usr.bin/ssh/ssh-agent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/ssh/ssh-agent.c') 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 * Copyright (c) 1995 Tatu Ylonen , 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) { -- cgit v1.2.3-59-g8ed1b