Blame SOURCES/autofs-5.1.6-fix-double-quoting-of-ampersand-in-auto.smb-as-well.patch

f3080c
autofs-5.1.6 - fix double quoting of ampersand in auto.smb as well
f3080c
f3080c
From: Ian Kent <raven@themaw.net>
f3080c
f3080c
The example program mount script installed to /etc/auto.smb incorrectly
f3080c
adds a quote for the & character that causes mount failures. But the
f3080c
produced map entry is already surrounded by double quotes. This may have
f3080c
been handled by mount.cifs at some point but it's failing now.
f3080c
f3080c
Signed-off-by: Ian Kent <raven@themaw.net>
f3080c
---
f3080c
 CHANGELOG        |    1 +
f3080c
 samples/auto.smb |    1 -
f3080c
 2 files changed, 1 insertion(+), 1 deletion(-)
f3080c
f3080c
--- autofs-5.1.4.orig/samples/auto.smb
f3080c
+++ autofs-5.1.4/samples/auto.smb
f3080c
@@ -75,7 +75,6 @@ $SMBCLIENT $smbopts -gL "$key" 2>/dev/nu
f3080c
 		  dir = $2
f3080c
 		  loc = $2
f3080c
 		  # Enclose mount dir and location in quotes
f3080c
-		  gsub(/\&/,"\\\\&",loc)
f3080c
 		  print " \\\n\t \"/" dir "\"", "\"://" key "/" loc "\""
f3080c
 		}
f3080c
 	END 	{ if (!first) print "\n"; else exit 1 }
f3080c
--- autofs-5.1.4.orig/CHANGELOG
f3080c
+++ autofs-5.1.4/CHANGELOG
f3080c
@@ -82,6 +82,7 @@
f3080c
 - fix set open file limit.
f3080c
 - improve descriptor open error reporting.
f3080c
 - fix double quoting in auto.smb.
f3080c
+- fix double quoting of ampersand in auto.smb as well.
f3080c
 
f3080c
 xx/xx/2018 autofs-5.1.5
f3080c
 - fix flag file permission.