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

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