[openssh-commits] [openssh] 02/02: upstream: when unveils error our, use correct variable

git+noreply at mindrot.org git+noreply at mindrot.org
Tue Mar 10 18:24:33 AEDT 2026


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit ef98b6014bc3268e904092894ffcb63022172a97
Author: deraadt at openbsd.org <deraadt at openbsd.org>
AuthorDate: Tue Mar 10 06:35:29 2026 +0000

    upstream: when unveils error our, use correct variable
    
    OpenBSD-Commit-ID: 6b496c10965e70413a9916a8823839c553c6b2c4
---
 ssh-agent.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ssh-agent.c b/ssh-agent.c
index 9c762a2e3..5186e8975 100644
--- a/ssh-agent.c
+++ b/ssh-agent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-agent.c,v 1.322 2026/03/10 03:40:26 djm Exp $ */
+/* $OpenBSD: ssh-agent.c,v 1.323 2026/03/10 06:35:29 deraadt Exp $ */
 /*
  * Author: Tatu Ylonen <ylo at cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -2581,11 +2581,11 @@ skip:
 	if ((ccp = getenv("SSH_PKCS11_HELPER")) == NULL || *ccp == '\0')
 		ccp = _PATH_SSH_PKCS11_HELPER;
 	if (unveil(ccp, "x") == -1)
-		fatal("%s: unveil %s: %s", __progname, cp, strerror(errno));
+		fatal("%s: unveil %s: %s", __progname, ccp, strerror(errno));
 	if ((ccp = getenv("SSH_ASKPASS")) == NULL || *ccp == '\0')
 		ccp = _PATH_SSH_ASKPASS_DEFAULT;
 	if (unveil(ccp, "x") == -1)
-		fatal("%s: unveil %s: %s", __progname, cp, strerror(errno));
+		fatal("%s: unveil %s: %s", __progname, ccp, strerror(errno));
 	if (unveil("/dev/null", "rw") == -1)                                    
 		fatal("%s: unveil /dev/null: %s", __progname, strerror(errno));
 	if (pledge("stdio rpath cpath wpath unix id proc exec", NULL) == -1)

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list