[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

new su behaviour & exit status

because of the new su behaviour its no longer possible to 
get any exit status from a command executed with su -c.
If you use init scripts which need to invoke su and you dont 
want to depend on sudo the init script will no longer 
recognize segfaults or other failures in execution and will 
always return 0 for $?.
Thats the reason for #349580.

Does anyone knows a fix for this or have any useful links on 
how to "workaround" this behaviour?
Kind regards

Nico Golde - JAB: nion@jabber.ccc.de | GPG: 0x73647CFF
http://www.ngolde.de | http://www.muttng.org | http://grml.org
Forget about that mouse with 3/4/5 buttons -
gimme a keyboard with 103/104/105 keys!

Attachment: pgpvkbnkxya4y.pgp
Description: PGP signature

Reply to: