On 09/11/2012 05:19 PM, Voelker, Bernhard wrote:
Ondrej Oprala wrote:
Hi,
I've written a tiny patch that should fix this issue with su:
https://bugzilla.redhat.com/show_bug.cgi?id=747592.
None of the shells' output propagates back
to the shell where su was called (except TCSH, which reports segfault
to stdout; I've tested this with sh,ksh,zsh,bash).
So, with this patch, su should print a warning if
WIFSIGNALED(status)&& WCOREDUMP(status) is true.
Good catch!
+ fprintf (stderr, _("Segmentation fault (core dumped)\n"));
Maybe the error message should point out that it
was not su which dumped core ... ;-)
Maybe not. Consider:
monitor_1 timeout 2 'su -c command'
You might as well just say "core dumped",
and leave the investigation as to what
cored exactly to inspection of the core file.
cheers,
Pádraig.
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html