* Patch: Correctly escape $ in auto.smb
@ 2009-06-11 14:54 Jason Spashett
0 siblings, 0 replies; only message in thread
From: Jason Spashett @ 2009-06-11 14:54 UTC (permalink / raw)
To: autofs
https://bugs.launchpad.net/ubuntu/+source/autofs/+bug/385244
auto.smb does not escape the $ common in windows administrative shares.
auto.smb has been changed to do this.
--- auto.smb.orig 2009-06-11 14:18:39.000000000 +0100
+++ auto.smb 2009-06-11 15:21:47.000000000 +0100
@@ -29,7 +29,7 @@
$SMBCLIENT $smbopts -gL $key 2>/dev/null| awk -v key="$key" -v
opts="$mountopts" -F'|' -- '
BEGIN { ORS=""; first=1 }
- /Disk/ { if (first) { print opts; first=0 }; sub(/ /, "\\ ",
$2); print " \\\n\t /", $2, "://" key "/" $2 }
+ /Disk/ { if (first) { print opts; first=0 }; gsub(/[ $]/,
"\\\&", $2); print " \\\n\t /" $2, "://" key "/" $2 }
END { if (!first) print "\n"; else exit 1 }
'
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-11 14:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-11 14:54 Patch: Correctly escape $ in auto.smb Jason Spashett
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.