Skip to contentSkip to conversation

parse(sun): invalid location

DISCUSSION Sandra Bonus 2 participants 2 messages Nov 19, 2007 Kernel automounter

lore
Share & tools
lore
#0 lore raw

The auto.samba script was included with the last post in the tar bundle. However, I have now fixed it thanks Ian's analysis.
The auto.samba used an awk which contained a "sub".
I have now replaced the "sub" with "gsub" to ensure that it escapes all spaces

I didn't put this in my original post because it sounds so corny, but it stopped working and I hadn't changed anything (on the Linux box). Now I realise that someone had added/altered the Windows share to include the space.

Thanks very much for sorting this out

----- Original Message ----
From: Ian Kent <[email protected]>
To: Sandra Bonus <[email protected]>
Cc: [email protected]
Sent: Friday, November 16, 2007 5:04:39 PM
Subject: Re: [autofs] parse(sun): invalid location

Quoted 3 lines · Sandra Bonus

Reproduce the problem using

ls -l /smb/awmelfp01/awmelsales1_backupsOther debug info attached

I think the script has an error in it.

From the debug log I can see the bit that causes the problem is:

/TS\ SSP National "://awmelfp01/TS\ SSP National"

where the second space isn't being quoted.

Can you also post the auto.samba that you are using (whether it's just the default or not) so I can check it out please.

Ian

      ____________________________________________________________________________________

Be a better sports nut! Let your teams follow you
with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ

maintainer
#1 lore raw
Quoted 4 lines · Sandra Bonus

The auto.samba script was included with the last post in the tar bundle. However, I have now fixed it thanks Ian's analysis.
The auto.samba used an awk which contained a "sub".
I have now replaced the "sub" with "gsub" to ensure that it escapes all spaces

Yep.

You might like to check the auto.smb that is included with the package. It uses double quotes around both the mount point and the target to achieve the same result.

Ian