sys-apps/shadow has a getopts() related bug which breaks the -c option which is used by some scripts, so people might depend on it. This bug is also mentioned in the official change log: ftp://ftp.pld.org.pl/software/shadow/ChangeLog temporary solution: downgrade to sys-apps/shadow-4.0.13
the ChangeLog lists fixes for -c, it doesnt mention any bugs
Well I don't konw if the changes intended to modify the -c option but if you want it to work now, you have to specify the user, even if you want to su to root : - before : su -c foo bar => executes foo bar using root privileges - after : su -c foo bar => -c isn't a recognized option, but su root -c foo bar will still work
you could use `su - -c foo bar` or `su -- -c foo bar`, but yes, `su -c foo bar` should work
grabbed a fix from upstream cvs and added to 4.0.14-r1
Thanks alot, that was quick.
*** Bug 118004 has been marked as a duplicate of this bug. ***