Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118342 - sys-apps/shadow-4.0.14: su doesn't recognize the option -c
Summary: sys-apps/shadow-4.0.14: su doesn't recognize the option -c
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 118004 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-08 17:27 UTC by Wolfgang Frisch
Modified: 2006-01-10 05:53 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Frisch 2006-01-08 17:27:07 UTC
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
Comment 1 SpanKY gentoo-dev 2006-01-09 06:27:04 UTC
the ChangeLog lists fixes for -c, it doesnt mention any bugs
Comment 2 jack_mort 2006-01-09 12:38:11 UTC
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
Comment 3 SpanKY gentoo-dev 2006-01-09 14:54:27 UTC
you could use `su - -c foo bar` or `su -- -c foo bar`, but yes, `su -c foo bar` should work
Comment 4 SpanKY gentoo-dev 2006-01-09 16:00:01 UTC
grabbed a fix from upstream cvs and added to 4.0.14-r1
Comment 5 Wolfgang Frisch 2006-01-09 18:40:36 UTC
Thanks alot, that was quick.
Comment 6 f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2006-01-10 05:53:34 UTC
*** Bug 118004 has been marked as a duplicate of this bug. ***