<?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>120403</bug_id>
          
          <creation_ts>2006-01-26 04:09 0000</creation_ts>
          <short_desc>coreutils-5.93 &amp; autofs</short_desc>
          <delta_ts>2006-05-30 09:45:27 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>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>QAcanfix</keywords>
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>andrej.filipcic@ijs.si</reporter>
          <assigned_to>net-fs@gentoo.org</assigned_to>
          <cc>boda2004@mail.ru</cc>
    
    <cc>dopey@moonteeth.com</cc>
    
    <cc>exien.ow@gmail.com</cc>
    
    <cc>grobian@gentoo.org</cc>
    
    <cc>haubi@gentoo.org</cc>
    
    <cc>jfilling@gmail.com</cc>
    
    <cc>langthang@gentoo.org</cc>
    
    <cc>manuel@mclure.org</cc>
    
    <cc>massimilianoadamo@yahoo.it</cc>
    
    <cc>qa@gentoo.org</cc>
    
    <cc>robbat2@gentoo.org</cc>
    
    <cc>rphillips@gentoo.org</cc>
    
    <cc>stevee@gorbag.com</cc>
    
    <cc>t4bs@internode.on.net</cc>
    
    <cc>zzam@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>andrej.filipcic@ijs.si</who>
            <bug_when>2006-01-26 04:09:40 0000</bug_when>
            <thetext>sort +POS1 does not work anymore with cureutils-5.93. POSIX or bug?
Anyway, /etc/autofs/auto.net from autofs needs a patch:

--- auto.net.org        2005-11-08 19:49:54.000000000 +0100
+++ auto.net    2006-01-26 13:08:25.824136932 +0100
@@ -22,7 +22,7 @@
 # Newer distributions get this right
 SHOWMOUNT=&quot;/usr/sbin/showmount --no-headers -e $key&quot;

-$SHOWMOUNT | LC_ALL=C sort +0 | \
+$SHOWMOUNT | LC_ALL=C sort | \
        awk -v key=&quot;$key&quot; -v opts=&quot;$opts&quot; -- &apos;
        BEGIN           { ORS=&quot;&quot;; first=1 }
                        { if (first) { print opts; first=0 }; print &quot; \\\n\t&quot; $1, key &quot;:&quot; $1 }</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-01-26 10:41:22 0000</bug_when>
            <thetext>most likely it&apos;s POSIX rearing it&apos;s &quot;helpful&quot; head</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andrej.filipcic@ijs.si</who>
            <bug_when>2006-01-29 01:33:28 0000</bug_when>
            <thetext>Created an attachment (id=78396)
autofs patch

this patch is in fedora devel to fix sort in autofs</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>manuel@mclure.org</who>
            <bug_when>2006-04-11 18:39:06 0000</bug_when>
            <thetext>*** Bug 129642 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-04-12 00:47:07 0000</bug_when>
            <thetext>*** Bug 129644 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2006-04-12 01:11:59 0000</bug_when>
            <thetext>coreutils 5.93 has been stabled without this patch to autofs.  Most likely more systems running &quot;stable&quot; will be broken now.  Please patch/bump autofs stable to fix this.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dopey@moonteeth.com</who>
            <bug_when>2006-04-12 12:58:41 0000</bug_when>
            <thetext>the fedora patch (-k 1) is more appropriate than dropping the +0 argument entirely (as in the original reporter&apos;s comment) as it results in the identical behavior as +0 did.  Not that it REALLY matters what order the mount points are processed in though :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-04-13 02:12:10 0000</bug_when>
            <thetext>*** Bug 129780 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-04-18 17:38:49 0000</bug_when>
            <thetext>*** Bug 130411 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-05-01 00:31:33 0000</bug_when>
            <thetext>*** Bug 131859 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>langthang@gentoo.org</who>
            <bug_when>2006-05-12 10:14:39 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; coreutils 5.93 has been stabled without this patch to autofs.  Most likely more
&gt; systems running &quot;stable&quot; will be broken now.  Please patch/bump autofs stable
&gt; to fix this.
&gt; 

This bug isn&apos;t moving. QA, please do something about this.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>halcy0n@gentoo.org</who>
            <bug_when>2006-05-19 18:28:29 0000</bug_when>
            <thetext>rphillips, robbat2: can one of you please add this patch and bump the latest stable version?  If there is no response in a week, I&apos;ll assume it is alright to add this, and I will bump it and add it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2006-05-19 19:14:39 0000</bug_when>
            <thetext>halcy0n: you can go ahead and commit it.
I&apos;m trying to work on the newer autofs stuff - which needs some major rewriting of the init script again :-(.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>halcy0n@gentoo.org</who>
            <bug_when>2006-05-19 20:43:37 0000</bug_when>
            <thetext>Fixed.  Thanks Robin.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2006-05-23 00:55:05 0000</bug_when>
            <thetext>Bug is NOT fixed.  The added patch only &quot;fixes&quot; the auto.net file that is installed in the samples.  The real problem is the auto.net file that is installed from ${FILESDIR} into /etc/autofs/.  This file still contains the sort +0.

Please change auto.net in ${FILESDIR}, or use the one from the sources and rebump to really fix this annoying issue that still breaks stable systems.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>antarus@gentoo.org</who>
            <bug_when>2006-05-27 21:52:53 0000</bug_when>
            <thetext>Refixed</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-05-29 03:03:13 0000</bug_when>
            <thetext>*** Bug 134741 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grobian@gentoo.org</who>
            <bug_when>2006-05-30 01:52:11 0000</bug_when>
            <thetext>this is really embarassing, but sorry... this fix again breaks a stable system:

% sort +k 1
sort: open failed: +k: No such file or directory

Not sure, but I think it should be &quot;-k 1&quot; which works fine.  Since I am no member of any of the involved groups here, I don&apos;t like to commit a fix that works... but please, could someone fix this for real very quickly now?  If you need a patch reviewal on a system (or three) that uses autofs, please send me mail, as I think it is clear that none of the committers actually could try the script out before committing.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>massimilianoadamo@yahoo.it</who>
            <bug_when>2006-05-30 02:04:46 0000</bug_when>
            <thetext>(In reply to comment #17)
&gt; this is really embarassing, but sorry... this fix again breaks a stable system:
&gt; 
&gt; % sort +k 1
&gt; sort: open failed: +k: No such file or directory
&gt; 
&gt; Not sure, but I think it should be &quot;-k 1&quot; which works fine. 


well, we had to wait only few months before seeing the patch available, but not yet in the tree, with the huge change: sort -k 1

?????</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>antarus@gentoo.org</who>
            <bug_when>2006-05-30 08:02:05 0000</bug_when>
            <thetext>
(In reply to comment #17)
&gt; this is really embarassing, but sorry... this fix again breaks a stable system:
&gt; 
&gt; % sort +k 1
&gt; sort: open failed: +k: No such file or directory
&gt; 
&gt; Not sure, but I think it should be &quot;-k 1&quot; which works fine.  Since I am no
&gt; member of any of the involved groups here, I don&apos;t like to commit a fix that
&gt; works... but please, could someone fix this for real very quickly now?  If you
&gt; need a patch reviewal on a system (or three) that uses autofs, please send me
&gt; mail, as I think it is clear that none of the committers actually could try the
&gt; script out before committing.
&gt; 

No this was completely my fault, I even looked at the sort manpage before changing it! :/
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-05-30 09:45:27 0000</bug_when>
            <thetext>*** Bug 134929 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>78396</attachid>
            <date>2006-01-29 01:33 0000</date>
            <desc>autofs patch</desc>
            <filename>autofs-4.1.4-fix-sort-opts.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGF1dG9mcy00LjEuNC9zYW1wbGVzL2F1dG8ubmV0Lm9yaWcJMjAwNS0xMS0wMyAxOToxNTox
MC4wMDAwMDAwMDAgLTA1MDAKKysrIGF1dG9mcy00LjEuNC9zYW1wbGVzL2F1dG8ubmV0CTIwMDUt
MTEtMDMgMTk6MTU6MTkuMDAwMDAwMDAwIC0wNTAwCkBAIC0zNyw3ICszNyw3IEBAIGRvbmUKICMg
TmV3ZXIgZGlzdHJpYnV0aW9ucyBnZXQgdGhpcyByaWdodAogU0hPV01PVU5UPSIkU01OVCAtLW5v
LWhlYWRlcnMgLWUgJGtleSIKIAotJFNIT1dNT1VOVCB8IExDX0FMTD1DIHNvcnQgKzAgfCBcCisk
U0hPV01PVU5UIHwgTENfQUxMPUMgc29ydCAtayAxIHwgXAogCWF3ayAtdiBrZXk9IiRrZXkiIC12
IG9wdHM9IiRvcHRzIiAtLSAnCiAJQkVHSU4JeyBPUlM9IiI7IGZpcnN0PTEgfQogCQl7IGlmIChm
aXJzdCkgeyBwcmludCBvcHRzOyBmaXJzdD0wIH07IHByaW50ICIgXFxcblx0IiAkMSwga2V5ICI6
IiAkMSB9Cg==
</data>        

          </attachment>
    </bug>

</bugzilla>