Bug 118342 - sys-apps/shadow-4.0.14: su doesn't recognize the option -c
|
Bug#:
118342
|
Product: Gentoo Linux
|
Version: 2005.1
|
Platform: x86
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: base-system@gentoo.org
|
Reported By: xororand@frexx.de
|
|
Component: Core system
|
|
|
URL:
|
|
Summary: sys-apps/shadow-4.0.14: su doesn't recognize the option -c
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2006-01-08 17:27 0000
|
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. ***