10 Mar
2010
10 Mar
'10
4:31 p.m.
Am 10.03.2010 17:16, schrieb Pierre Schmitz:
This is really not my day and I already regret touching this package. :-) The problem with using readlink /proc/$pid/exe is that during an update of a running sshd that link will point nowhere. As a result the restart will fail.
What do you think about using /proc/$pid/cmdline instead?
Just found out that this wont work with ssh_args set in /ec/conf.d/sshd. My last resort would be stripping that possible "(deleted)" fro mthe readlink output.
The sshd symlink is not actually a symlink, it is something weird. It will always seem to point to the right "path" as far as I know, even when the binary is changed or deleted.