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

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