Skip to contentSkip to conversation

[[email protected]: Bug#296238: autofs breaks nis auto.master when there is a tab in nsswitch]

[email protected]: Bug#296238: autofs breaks nis auto.master when there is a tab in nsswitch Steinar H. Gunderson 3 participants 9 messages Feb 21, 2005 – Feb 23, 2005 Kernel automounter

lore
Share & tools
lore
#0 lore raw

FYI: Looks like the change done in the init script for 4.1.4beta2 broke this again; I'll revert to the 4.1.3 version and upload.

BTW, there's also multiple people complaining about the new auto.* scripts (see the Debian BTS), but I haven't had time to look into it yet.

/* Steinar */

Signature · 1 line
Homepage: http://www.sesse.net/

Package: autofs
Version: 4.1.3+4.1.4beta2-2
Severity: grave

The diff for etc/init.d/autofs includes:
#
# Check for all maps that are to be loaded
#
function getschemes()
{
- if grep -q ^automount: /etc/nsswitch.conf; then
+ if grep -q '^automount:[ \t]' /etc/nsswitch.conf; then

         grep ^automount: /etc/nsswitch.conf | \
                 sed -e 's/^.*://' -e 's/\[.*\]/ /g'
     else
         echo files
     fi

}

However, the new grep is broken:

| weasel@olga:~$ grep '^automount:[ \t]' /etc/nsswitch.conf
| weasel@olga:~$ grep '^automount:[ ]' /etc/nsswitch.conf

                                    ^^^^ < that's a tab

| automount: files nis

Signature · 1 line
Peter

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

#1 lore raw
Quoted 2 lines · Steinar H. Gunderson

FYI: Looks like the change done in the init script for 4.1.4beta2 broke this again; I'll revert to the 4.1.3 version and upload.

Strange, I just tested it again and I it works fine for me. What am I missing in this I wonder?

Any more info. would be great.

Quoted 3 lines

BTW, there's also multiple people complaining about the new auto.* scripts (see the Debian BTS), but I haven't had time to look into it yet.

It would be good if you could check it out.
I'm keen to know what's is broken.

Ian

#2 lore raw
Quoted 2 lines · On Tue, Feb 22, 2005 at 12:41:41AM +0800, [email protected] wrote:

Strange, I just tested it again and I it works fine for me. What am I missing in this I wonder?

Probably a different version of grep or something? I've had three separate bug reports on this, so I guess it _is_ indeed broken. :-)

/* Steinar */

Signature · 1 line
Homepage: http://www.sesse.net/
#3 lore raw

==> Regarding Re: [autofs] [[email protected]: Bug#296238: autofs breaks nis auto.master when there is a tab in nsswitch]; "Steinar H. Gunderson" <[email protected]> adds:

sgunderson> On Tue, Feb 22, 2005 at 12:41:41AM +0800, [email protected]

Quoted 2 lines · sgunderson> wrote:
Quoted 2 lines

Strange, I just tested it again and I it works fine for me. What am I missing in this I wonder?

sgunderson> Probably a different version of grep or something? I've had sgunderson> three separate bug reports on this, so I guess it _is_ indeed sgunderson> broken. :-)

Actually, what is LC_ALL set to?

Try your grep again after doing this:

export LC_ALL=C

-Jeff

#4 lore raw
In reply to [email protected]
Quoted 4 lines · On Tue, Feb 22, 2005 at 12:41:41AM +0800, [email protected] wrote:
Quoted 2 lines

BTW, there's also multiple people complaining about the new auto.* scripts (see the Debian BTS), but I haven't had time to look into it yet.

It would be good if you could check it out.
I'm keen to know what's is broken.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=295723

/* Steinar */

Signature · 1 line
Homepage: http://www.sesse.net/
#5 lore raw
Quoted 7 lines · Steinar H. Gunderson
Quoted 4 lines · On Tue, Feb 22, 2005 at 12:41:41AM +0800, [email protected] wrote:
Quoted 2 lines

BTW, there's also multiple people complaining about the new auto.* scripts (see the Debian BTS), but I haven't had time to look into it yet.

It would be good if you could check it out.
I'm keen to know what's is broken.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=295723

Thanks Steinar, I'll unroll the expression in a loop to fix this.

Would you like an interim patch or would you prefer to wait for beta3?

Ian

#6 lore raw
Quoted 4 lines · On Tue, Feb 22, 2005 at 10:39:19PM +0800, [email protected] wrote:
Quoted 1 line

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=295723

Thanks Steinar, I'll unroll the expression in a loop to fix this.

Would you like an interim patch or would you prefer to wait for beta3?

I can wait for beta3, no problem. Do you do s/sh/bash/ in it while you're at it (or optionally POSIXify the script)?

/* Steinar */

Signature · 1 line
Homepage: http://www.sesse.net/
#7 lore raw
Quoted 8 lines · Steinar H. Gunderson
Quoted 4 lines · On Tue, Feb 22, 2005 at 10:39:19PM +0800, [email protected] wrote:
Quoted 1 line

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=295723

Thanks Steinar, I'll unroll the expression in a loop to fix this.

Would you like an interim patch or would you prefer to wait for beta3?

I can wait for beta3, no problem. Do you do s/sh/bash/ in it while you're at it (or optionally POSIXify the script)?

I think that unrolling the path regex (searching individually) will be bourne shell compliant.

Do you think that will be sufficient.
I would rather stick within Debian policy if possible.

Are there any other bits you've noticed that might be a problem?

Ian

#8 lore raw
Quoted 1 line · On Wed, Feb 23, 2005 at 09:53:32PM +0800, [email protected] wrote:

Are there any other bits you've noticed that might be a problem?

Not that I know of.

/* Steinar */

Signature · 1 line
Homepage: http://www.sesse.net/