<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>118342</bug_id>
          
          <creation_ts>2006-01-08 17:27 0000</creation_ts>
          <short_desc>sys-apps/shadow-4.0.14: su doesn&apos;t recognize the option -c</short_desc>
          <delta_ts>2006-01-10 05:53:34 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Core system</component>
          <version>2005.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>xororand@frexx.de</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          <cc>aaron@cs.tu-berlin.de</cc>
    
    <cc>jackmort@free.fr</cc>

      

      
          <long_desc isprivate="0">
            <who>xororand@frexx.de</who>
            <bug_when>2006-01-08 17:27:07 0000</bug_when>
            <thetext>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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-01-09 06:27:04 0000</bug_when>
            <thetext>the ChangeLog lists fixes for -c, it doesnt mention any bugs</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jackmort@free.fr</who>
            <bug_when>2006-01-09 12:38:11 0000</bug_when>
            <thetext>Well I don&apos;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 =&gt; executes foo bar using root privileges
- after : su -c foo bar =&gt; -c isn&apos;t a recognized option, but su root -c foo bar will still work</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-01-09 14:54:27 0000</bug_when>
            <thetext>you could use `su - -c foo bar` or `su -- -c foo bar`, but yes, `su -c foo bar` should work</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-01-09 16:00:01 0000</bug_when>
            <thetext>grabbed a fix from upstream cvs and added to 4.0.14-r1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>xororand@frexx.de</who>
            <bug_when>2006-01-09 18:40:36 0000</bug_when>
            <thetext>Thanks alot, that was quick.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aaron@cs.tu-berlin.de</who>
            <bug_when>2006-01-10 05:53:34 0000</bug_when>
            <thetext>*** Bug 118004 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
      
    </bug>

</bugzilla>