Files
coreutils/tests/misc
Eric Blake 1c59bb3cef nice, nohup, su: detect write failure to stderr
These programs can print non-fatal diagnostics to stderr prior to
exec'ing a subsidiary program.  However, if we thought the situation
warranted a diagnostic, we insist that the diagnostic be printed
without error, rather than blindly exec, as it may be a security risk.

For an example, try 'nice -n -1 nice 2>/dev/full'.  Failure to raise
priority (by lowering niceness) is not fatal, but failure to inform
the user about failure to change priority is dangerous.

* src/nice.c (main): Declare failure if writing advisory message
to stderr fails.
* src/nohup.c (main): Likewise.
* src/su.c (main): Likewise.
* tests/misc/nice: Test this.
* tests/misc/nohup: Likewise.
* NEWS: Document this.
2009-10-28 21:12:41 -06:00
..
2009-10-23 16:31:23 -06:00
2009-10-23 16:31:34 -06:00
2009-08-28 12:56:51 -06:00
2009-10-26 21:30:34 -06:00
2009-10-27 19:55:35 -06:00
2009-08-25 09:21:00 +02:00
2009-10-28 06:24:52 -06:00
2009-10-27 18:53:44 -06:00
2009-03-25 06:33:32 -06:00
2009-08-25 09:21:00 +02:00
2009-01-28 16:43:52 +00:00
2009-10-08 20:30:00 -06:00
2009-10-23 16:32:26 -06:00
2009-08-25 09:21:00 +02:00
2009-08-25 09:21:00 +02:00