- actually commit the patches referred to in the commit. - adjust revision to allow fixing f32 revision on update.
28 lines
932 B
Diff
28 lines
932 B
Diff
autofs-5.1.6 - fix double quoting in auto.smb
|
|
|
|
From: Ian Kent <raven@themaw.net>
|
|
|
|
The example program mount script installed to /etc/auto.smb incorrectly
|
|
adds a quote for the trailing dollar of special Windows mounts. But they
|
|
are already surrounded by double quotes. This may have been handled by
|
|
mount.cifs at some point but it's failing now.
|
|
|
|
Signed-off-by: Ian Kent <raven@themaw.net>
|
|
---
|
|
samples/auto.smb | 2 --
|
|
1 file changed, 2 deletions(-)
|
|
|
|
diff --git a/samples/auto.smb b/samples/auto.smb
|
|
index 6af5d856..4842b689 100755
|
|
--- a/samples/auto.smb
|
|
+++ b/samples/auto.smb
|
|
@@ -75,8 +75,6 @@ $SMBCLIENT $smbopts -gL "$key" 2>/dev/null| awk -v "key=$key" -v "opts=$opts" -F
|
|
dir = $2
|
|
loc = $2
|
|
# Enclose mount dir and location in quotes
|
|
- # Double quote "$" in location as it is special
|
|
- gsub(/\$$/, "\\$", loc);
|
|
gsub(/\&/,"\\\\&",loc)
|
|
print " \\\n\t \"/" dir "\"", "\"://" key "/" loc "\""
|
|
}
|