[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#369964: ssh: fails to run as daemon if /dev/null is a regular file (daemon() failed: Success)



On 02/06/06 12:39, Colin Watson wrote:

On Fri, Jun 02, 2006 at 12:09:05PM -0300, Salvador E. Tropea wrote:
Package: ssh
Version: 1:3.8.1p1-8.sarge.4
Severity: grave

This is severity inflation; I've downgraded it. (It's only unusable on
very broken systems.)

Ok.

The sshd daemon fails to start if /dev/null is a regular file.
You can start sshd in debug mode (sshd -d) but when you try to start it normally it fails to go to background.
The program logs the following error:

daemon() failed: Success

The poor error reporting is largely the fault of the C library. See the
daemon(3) man page.

Are you sure? I din't check the code, but looks like poor error checking in the code.
Do you mean that libc is opening /dev/null by itself?

Regards, SET





Reply to: