[usb-modeswitch-data] update to latest version.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-connectivity / autofs / autofs-4.1.4 / 085_auto_net_lp111612.patch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 085-auto.net-lp111612 by Morten Kjeldgaard <mok@bioxray.au.dk>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Fix problem with directories exported multiple times to different 
6 ## DP: hosts (LP: #111612).
7
8 @DPATCH@
9
10 --- samples/auto.net    2008-04-09 16:32:59.000000000 +0200
11 +++ foo/samples/auto.net        2008-04-09 16:34:29.000000000 +0200
12 @@ -37,7 +37,7 @@
13  # Newer distributions get this right
14  SHOWMOUNT="$SMNT --no-headers -e $key"
15  
16 -$SHOWMOUNT | LC_ALL=C sort -k 1 | \
17 +$SHOWMOUNT | LC_ALL=C cut -d' ' -f1 | LC_ALL=C sort -k 1 | \
18         awk -v key="$key" -v opts="$opts" -- '
19         BEGIN   { ORS=""; first=1 }
20                 { if (first) { print opts; first=0 }; print " \\\n\t" $1, key ":" $1 }