autofs-5.0.1 - fix ampersand escape in auto.smb From: Ian Kent <raven@themaw.net> CIFS share names containing an ampersand need to be escaped. --- samples/auto.smb | 1 + 1 file changed, 1 insertion(+) --- autofs-5.0.1.orig/samples/auto.smb +++ autofs-5.0.1/samples/auto.smb @@ -28,6 +28,7 @@ $SMBCLIENT -gNL $key 2>/dev/null| awk -v # Enclose mount dir and location in quotes # Double quote "$" in location as it is special gsub(/\$$/, "\\$", loc); + gsub(/\&/,"\\\\&",loc) print " \\\n\t \"/" dir "\"", "\"://" key "/" loc "\"" } END { if (!first) print "\n"; else exit 1 }