Sample auto.net provided with autofs is incorrect
PATCH 1/1 Sample auto.net provided with autofs is incorrect
Hi all;
Please see this bug I just reported against Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/autofs/+bug/111612
I believe this problem also exists in the original autofs package. However, I can't seem to find the source anywhere; the freshmeat page for autofs looks quite out of date and doesn't have any homepage/etc. info, and Google searches came up empty as well.
I attach a patch below.
Signature · 5 lines
----------------------------------------------------------------------------- Paul D. Smith <[email protected]> http://netezza.com "Please remain calm--I may be mad, but I am a professional."--Mad Scientist ----------------------------------------------------------------------------- These are my opinions--Netezza takes no responsibility for them.
etc/auto.net renamed from etc/auto.net-dist +1 -1
@@ -37,7 +37,7 @@ # Newer distributions get this right SHOWMOUNT="$SMNT --no-headers -e $key" -$SHOWMOUNT | LC_ALL=C sort -u -k 1 | \ +$SHOWMOUNT | LC_ALL=C cut -d\ -f1 | LC_ALL=C sort -u | \ awk -v key="$key" -v opts="$opts" -- ' BEGIN { ORS=""; first=1 } { if (first) { print opts; first=0 }; print " \\\n\t" $1, key ":" $1 }
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs
==> On Tue, 01 May 2007 17:00:09 -0400, Paul Smith <[email protected]> said:
Paul> Hi all;
Paul> Please see this bug I just reported against Ubuntu:
Paul> https://bugs.launchpad.net/ubuntu/+source/autofs/+bug/111612
Paul> I believe this problem also exists in the original autofs package. Paul> However, I can't seem to find the source anywhere; the freshmeat page Paul> for autofs looks quite out of date and doesn't have any homepage/etc. Paul> info, and Google searches came up empty as well.
So, ubuntu ships with autofs version 4.1.x? You can find the upstream git tree here:
git://git.kernel.org/pub/scm/linux/storage/autofs/autofs.git
Autofs version 5 no longer uses the auto.net script. If you checkout the autofs-4_1_4 branch, you'll find the auto.net script in the samples directory.
I can't speak to your failure, however. The auto.net script you reference is a little different from the one upstream. Upstream uses sort -k 1 (no -u).
Cheers,
Jeff