Blame autofs-5.0.5-fix-ampersand-escape-in-auto-smb.patch
|
Ian Kent |
135552 |
autofs-5.0.5 - fix ampersand escape in auto.smb
|
|
Ian Kent |
135552 |
|
|
Ian Kent |
135552 |
From: Ian Kent <raven@themaw.net>
|
|
Ian Kent |
135552 |
|
|
Ian Kent |
135552 |
CIFS share names containing an ampersand need to be escaped.
|
|
Ian Kent |
135552 |
---
|
|
Ian Kent |
135552 |
|
|
Ian Kent |
135552 |
CHANGELOG | 1 +
|
|
Ian Kent |
135552 |
samples/auto.smb | 1 +
|
|
Ian Kent |
135552 |
2 files changed, 2 insertions(+)
|
|
Ian Kent |
135552 |
|
|
Ian Kent |
135552 |
|
|
Ian Kent |
135552 |
--- autofs-5.0.5.orig/CHANGELOG
|
|
Ian Kent |
135552 |
+++ autofs-5.0.5/CHANGELOG
|
|
Ian Kent |
135552 |
@@ -24,6 +24,7 @@
|
|
Ian Kent |
135552 |
- fix reconnect get base dn.
|
|
Ian Kent |
135552 |
- add missing sasl mutex callbacks.
|
|
Ian Kent |
135552 |
- fix get query dn failure.
|
|
Ian Kent |
135552 |
+- fix ampersand escape in auto.smb.
|
|
Ian Kent |
135552 |
|
|
Ian Kent |
135552 |
03/09/2009 autofs-5.0.5
|
|
Ian Kent |
135552 |
-----------------------
|
|
Ian Kent |
135552 |
--- autofs-5.0.5.orig/samples/auto.smb
|
|
Ian Kent |
135552 |
+++ autofs-5.0.5/samples/auto.smb
|
|
Ian Kent |
135552 |
@@ -26,6 +26,7 @@ $SMBCLIENT -gNL $key 2>/dev/null| awk -v
|
|
Ian Kent |
135552 |
# Enclose mount dir and location in quotes
|
|
Ian Kent |
135552 |
# Double quote "$" in location as it is special
|
|
Ian Kent |
135552 |
gsub(/\$$/, "\\$", loc);
|
|
Ian Kent |
135552 |
+ gsub(/\&/,"\\\\&",loc)
|
|
Ian Kent |
135552 |
print " \\\n\t \"/" dir "\"", "\"://" key "/" loc "\""
|
|
Ian Kent |
135552 |
}
|
|
Ian Kent |
135552 |
END { if (!first) print "\n"; else exit 1 }
|