exit code weirdness in fatal()
Pekka Savola
pekkas at netcore.fi
Sun Feb 18 01:46:49 EST 2001
Hello all,
I came across the following with the latest snapshot (and previous):
(just trying to start sshd when it's already running)
# ./sshd -d
[snip]
socket: Invalid argument
debug1: Bind to port 22 on 0.0.0.0.
fatal: Cannot bind any address.
# echo $?
255
# ./sshd
# echo $?
0
with './sshd', the same fatal message is printed to syslog.
This seems critically wrong on systems that check what sshd's exit
status was to see if it should have started running without problems.
--
Pekka Savola "Tell me of difficulties surmounted,
Netcore Oy not those you stumble over and fall"
Systems. Networks. Security. -- Robert Jordan: A Crown of Swords
More information about the openssh-unix-dev
mailing list