Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Open /dev/null instead of passing non-functional stderr to CSD trojans
When the auth-dialog is invoked from gnome-shell, it *closes* the other end of our stderr. Detect this with ferror(stderr), and open /dev/null instead. This prevents CSD scripts from taking SIGPIPE when writing to stderr (which we also dup to be their stdout) and aborting. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
- Loading branch information
Showing
2 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters