On Mon, 14 Nov 2005, Hans Deragon wrote:

Thanks for reporting this Hans.

> Greetings.
> 
> 
>    I compiled autofs 4.1.4 for SuSE Linux Enterprise Server 9 (SLES9). 
> I did found a little problem with auto.net.  The original code has:
> 
>    key=$1
> 
>    However, under SLES9, in my network environment, $key can be of the 
> form "server/something[/otherthing]*", which is wrong.  $key should only 
> be a server name.  I fixed the problem with:
> 
>    key=`echo $1 | perl -wp -e 's%^(\w+)(\/?.+)*$%$1%;'`
> 
>    My fix removes any path after the server name.

Interesting. I'm not sure why that's happening either.

> 
>    Exactly why automount passes a server name containg some path is 
> unclear for me.  But I wanted to report this here.  If other suffer from 
> this, you might want to consider some fix like mine (maybe using sed 
> which is more standard).

Yep. Sounds like a good idea.

I'll put it on the queue of stuff for 4.1 so I can do it when I eventually 
get back to it.

Ian

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to