I can't get it to work without also removing the quoting in the awk script in 
/etc/auto.smb, i.e.:
@@ -76,7 +76,7 @@
                  loc = $2
                  # Enclose mount dir and location in quotes
                  # Double quote "$" in location as it is special
-                 gsub(/\$$/, "\\$", loc);
+                 #gsub(/\$$/, "\\$", loc);
                  gsub(/\&/,"\\\\&",loc)
                  print " \\\n\t \"/" dir "\"", "\"://" key "/" loc "\""


and I'm a bit afraid of doing that. I wouldn't want to have the shell suddenly 
expanding variables or even executing commands there $(), depending on how 
mount.cifs is called of course.

tl;dr to get C$ mounted I need to apply both patches and change auto.smb
like above.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1680224

Title:
  auto.smb fails on Windows administrative shares

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autofs/+bug/1680224/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to