The pam_modutil_sanitize_fd() when called to provide a dummy pipes for
stdout and stderr closes the read end of the newly created dummy pipe.
This is wrong as any writes to such pipe will trigger SIGPIPE. The
original code did a trick to avoid that by dup2-ing the read end of the
pipe as stdin. However it does not necessarily have to be stdin, we
just need to ensure the read end of the pipe is not closed.
The attached patch implements the fix. OK to commit?
--
Tomáš Mráz
No matter how far down the wrong road you've gone, turn back.
Turkish proverb
[You'll know whether the road is wrong if you carefully listen to your
conscience.]
Show replies by date