]> git.ipfire.org Git - thirdparty/openssh-portable.git/commit
upstream: When system calls indicate an error they return -1, not
authorderaadt@openbsd.org <deraadt@openbsd.org>
Fri, 28 Jun 2019 13:35:04 +0000 (13:35 +0000)
committerDamien Miller <djm@mindrot.org>
Fri, 5 Jul 2019 01:10:39 +0000 (11:10 +1000)
commit4d28fa78abce2890e136281950633fae2066cc29
tree33226ec64ced661bb7e40005e30744b68fa59a80
parente8c974043c1648eab0ad67a7ba6a3e444fe79d2d
upstream: When system calls indicate an error they return -1, not

some arbitrary value < 0.  errno is only updated in this case.  Change all
(most?) callers of syscalls to follow this better, and let's see if this
strictness helps us in the future.

OpenBSD-Commit-ID: 48081f00db7518e3b712a49dca06efc2a5428075
31 files changed:
auth-rhosts.c
auth.c
authfd.c
authfile.c
canohost.c
channels.c
clientloop.c
misc.c
monitor.c
monitor_wrap.c
mux.c
nchan.c
packet.c
readconf.c
readpass.c
scp.c
serverloop.c
session.c
sftp-server.c
ssh-add.c
ssh-agent.c
ssh-keygen.c
ssh-keyscan.c
ssh.c
sshconnect.c
sshconnect2.c
sshd.c
sshkey-xmss.c
sshlogin.c
sshpty.c
uidswap.c