mirror of
https://github.com/openssh/openssh-portable.git
synced 2026-11-06 05:16:43 +00:00
upstream: fix inverted test that broke ssh-add with keys on stdin. From
Laurence Tratt OpenBSD-Commit-ID: bcef522cfa587c7cf035660bb347cff36b65bfbd
This commit is contained in:
1 parent
aab5620a66
commit
93d6348ae4
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user