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

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