Skip to content

Commit ef98b60

Browse files
deraadt@openbsd.orgdjmdjm
authored andcommitted
upstream: when unveils error our, use correct variable
OpenBSD-Commit-ID: 6b496c10965e70413a9916a8823839c553c6b2c4
1 parent beba588 commit ef98b60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ssh-agent.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: ssh-agent.c,v 1.322 2026/03/10 03:40:26 djm Exp $ */
1+
/* $OpenBSD: ssh-agent.c,v 1.323 2026/03/10 06:35:29 deraadt Exp $ */
22
/*
33
* Author: Tatu Ylonen <ylo@cs.hut.fi>
44
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2581,11 +2581,11 @@ main(int ac, char **av)
25812581
if ((ccp = getenv("SSH_PKCS11_HELPER")) == NULL || *ccp == '\0')
25822582
ccp = _PATH_SSH_PKCS11_HELPER;
25832583
if (unveil(ccp, "x") == -1)
2584-
fatal("%s: unveil %s: %s", __progname, cp, strerror(errno));
2584+
fatal("%s: unveil %s: %s", __progname, ccp, strerror(errno));
25852585
if ((ccp = getenv("SSH_ASKPASS")) == NULL || *ccp == '\0')
25862586
ccp = _PATH_SSH_ASKPASS_DEFAULT;
25872587
if (unveil(ccp, "x") == -1)
2588-
fatal("%s: unveil %s: %s", __progname, cp, strerror(errno));
2588+
fatal("%s: unveil %s: %s", __progname, ccp, strerror(errno));
25892589
if (unveil("/dev/null", "rw") == -1)
25902590
fatal("%s: unveil /dev/null: %s", __progname, strerror(errno));
25912591
if (pledge("stdio rpath cpath wpath unix id proc exec", NULL) == -1)

0 commit comments

Comments
 (0)