Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rate Thread Display Modes
Old 11-26-2012, 08:54 AM   #1
ddaloia
Registered User
 
Join Date: Nov 2012
Posts: 1
autofs - escape space in smbfs share name?

Hi Folks,

Is there a reason you can't use autofs with smb shares that contain a space in the share name? I have tried absolutely everything to try and escape a space in the share name and nothing works. It should be a simple \ which works fine for hidden shares $

Here is an example:

/Volumes/my_share -fstype=smbfs ://username:Password@servername/my\ share

Why on earth would this not work?

Thanks!!
ddaloia is offline   Reply With Quote
Old 11-26-2012, 05:35 PM   #2
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 31,958
The problem is likely due to the string (name of the share) getting passed to some other command that doesn't like spaces. Your backslash "protects" the space only for the first time the string is interpreted.

Googling for:
fstype=smbfs spaces
finds the following Debian bug report
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=85858
where the "fix" was apparently to use double-backslashes
__________________
hayne.net/macosx.html
hayne is online now   Reply With Quote
Reply

Tags
autofs, escape sequences, smbfs

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 02:48 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.