Blame SOURCES/autofs-5.1.6-fix-double-quoting-in-auto.smb.patch

f3080c
autofs-5.1.6 - fix double quoting in auto.smb
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 trailing dollar of special Windows mounts. But they
f3080c
are already surrounded by double quotes. This may have been handled by
f3080c
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 |    2 --
f3080c
 2 files changed, 1 insertion(+), 2 deletions(-)
f3080c
f3080c
--- autofs-5.1.4.orig/samples/auto.smb
f3080c
+++ autofs-5.1.4/samples/auto.smb
f3080c
@@ -75,8 +75,6 @@ $SMBCLIENT $smbopts -gL "$key" 2>/dev/nu
f3080c
 		  dir = $2
f3080c
 		  loc = $2
f3080c
 		  # Enclose mount dir and location in quotes
f3080c
-		  # Double quote "$" in location as it is special
f3080c
-		  gsub(/\$$/, "\\$", loc);
f3080c
 		  gsub(/\&/,"\\\\&",loc)
f3080c
 		  print " \\\n\t \"/" dir "\"", "\"://" key "/" loc "\""
f3080c
 		}
f3080c
--- autofs-5.1.4.orig/CHANGELOG
f3080c
+++ autofs-5.1.4/CHANGELOG
f3080c
@@ -81,6 +81,7 @@
f3080c
 - fix kernel mount status notification.
f3080c
 - fix set open file limit.
f3080c
 - improve descriptor open error reporting.
f3080c
+- fix double quoting in auto.smb.
f3080c
 
f3080c
 xx/xx/2018 autofs-5.1.5
f3080c
 - fix flag file permission.