[openssh-commits] [openssh] branch master updated: upstream: fix inverted test that broke ssh-add with keys on stdin. From

git+noreply at mindrot.org git+noreply at mindrot.org
Sun Jul 5 10:19:18 AEST 2026


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

djm pushed a commit to branch master
in repository openssh.

The following commit(s) were added to refs/heads/master by this push:
     new 93d6348ae upstream: fix inverted test that broke ssh-add with keys on stdin. From
93d6348ae is described below

commit 93d6348ae44491b7542d78c0d55da7130e9db017
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Sun Jul 5 00:16:21 2026 +0000

    upstream: fix inverted test that broke ssh-add with keys on stdin. From
    
    Laurence Tratt
    
    OpenBSD-Commit-ID: bcef522cfa587c7cf035660bb347cff36b65bfbd
---
 sshbuf-io.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sshbuf-io.c b/sshbuf-io.c
index 2c1fb4544..426b7e234 100644
--- a/sshbuf-io.c
+++ b/sshbuf-io.c
@@ -1,4 +1,4 @@
-/*	$OpenBSD: sshbuf-io.c,v 1.3 2026/06/29 09:14:25 djm Exp $ */
+/*	$OpenBSD: sshbuf-io.c,v 1.4 2026/07/05 00:16:21 djm Exp $ */
 /*
  * Copyright (c) 2011 Damien Miller
  *
@@ -61,7 +61,7 @@ sshbuf_load_fd(int fd, struct sshbuf **blobp)
 			goto out;
 		}
 	}
-	if (S_ISREG(st.st_mode) == 0 &&
+	if (S_ISREG(st.st_mode) != 0 &&
 	    st.st_size != (off_t)sshbuf_len(blob)) {
 		r = SSH_ERR_FILE_CHANGED;
 		goto out;

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


More information about the openssh-commits mailing list