]> git.pld-linux.org Git - packages/autofs.git/commitdiff
- official patches
authorPaweł Gołaszewski <blues@pld-linux.org>
Mon, 26 Jun 2006 21:49:03 +0000 (21:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    autofs-4.1.4-auto.smb-cifs.patch -> 1.1

autofs-4.1.4-auto.smb-cifs.patch [new file with mode: 0644]

diff --git a/autofs-4.1.4-auto.smb-cifs.patch b/autofs-4.1.4-auto.smb-cifs.patch
new file mode 100644 (file)
index 0000000..a4120d3
--- /dev/null
@@ -0,0 +1,22 @@
+diff --git a/samples/auto.smb b/samples/auto.smb
+index ad44fc0..d0abcd7 100755
+--- a/samples/auto.smb
++++ b/samples/auto.smb
+@@ -5,7 +5,7 @@
+ # This file must be executable to work! chmod 755!
+ key="$1"
+-opts="-fstype=smbfs"
++opts="-fstype=cifs"
+ for P in /bin /sbin /usr/bin /usr/sbin
+ do
+@@ -20,7 +20,7 @@ done
+ $SMBCLIENT -gNL $key 2>/dev/null| awk -v key="$key" -v opts="$opts" -F'|' -- '
+       BEGIN   { ORS=""; first=1 }
+-      /Disk/  { if (first) { print opts; first=0 }; print " \\\n\t /" $2, "://" key "/" $2 }
++      /Disk/  { if (first) { print opts; first=0 }; sub(/ /, "\\ ", $2); print " \\\n\t /" $2, "://" key "/" $2 }
+       END     { if (!first) print "\n"; else exit 1 }
+       '
This page took 0.039394 seconds and 4 git commands to generate.