a275d04aab
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/autofs#1cda5aaae19a25dd9afa10a9ed1763ac59640019
27 lines
929 B
Diff
27 lines
929 B
Diff
autofs-5.1.6 - fix double quoting of ampersand in auto.smb as well
|
|
|
|
From: Ian Kent <raven@themaw.net>
|
|
|
|
The example program mount script installed to /etc/auto.smb incorrectly
|
|
adds a quote for the & character that causes mount failures. But the
|
|
produced map entry is 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 | 1 -
|
|
1 file changed, 1 deletion(-)
|
|
|
|
diff --git a/samples/auto.smb b/samples/auto.smb
|
|
index 4842b689..f6d41d35 100755
|
|
--- a/samples/auto.smb
|
|
+++ b/samples/auto.smb
|
|
@@ -75,7 +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
|
|
- gsub(/\&/,"\\\\&",loc)
|
|
print " \\\n\t \"/" dir "\"", "\"://" key "/" loc "\""
|
|
}
|
|
END { if (!first) print "\n"; else exit 1 }
|