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

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