[Bug 606] sshd [-t] should warn when cannot create pid file

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat Jun 28 00:11:57 EST 2003


http://bugzilla.mindrot.org/show_bug.cgi?id=606

dtucker at zip.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #338 is|0                           |1
           obsolete|                            |



------- Additional Comments From dtucker at zip.com.au  2003-06-28 00:11 -------
Created an attachment (id=339)
 --> (http://bugzilla.mindrot.org/attachment.cgi?id=339&action=view)
Use realpath to test existence of PidFile directory

One person's "bloat" is another's "valuable diagnostic" :-)

If you cut down the things that are checked for and can live with less
descriptive errors you can just use realpath().  It still performs a useful
subset of tests (and handles Ben's evilness too) with less code.

# sshd/sshd -t -o 'PidFile /no/such'
Invalid PidFile specification: /no/such (No such file or directory)
# sshd/sshd -t -o 'PidFile /etc/passwd/pidfile'
Invalid PidFile specification: /etc/passwd/pidfile (Not a directory)
# sshd/sshd -t -o 'PidFile /tmp\/myfile.pid'
Invalid PidFile specification: /tmp\\/myfile.pid (No such file or directory)



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list