[PATCH] Fix bug #9166 - Starting smbd or nmbd with stdin from /dev/null results in "EOF on stdin"

Jeremy Allison jra at samba.org
Wed Jun 19 10:23:12 MDT 2013

On Wed, Jun 19, 2013 at 01:52:43PM +1000, Andrew Bartlett wrote:
> On Tue, 2013-06-18 at 11:18 -0700, Jeremy Allison wrote:
> > OEM confirms this fixes the issue for them.
> > 
> > Please review and push if you're ok with it.
> The source4/smbd/server.c patch seems to be missing an fstat call.

Ok I'll add that. Was fixing nmbd/winbindd/smbd initially.

> Also, what happens if the fd is not a file, but a socket or a pipe?

That's what the patch does - when it's a socket or pipe
the stdin handler is added, not otherwise.

More information about the samba-technical mailing list