All of lore.kernel.org
 help / color / mirror / Atom feed
* auto.net gets a key with a path under SLES9.
@ 2005-11-14 20:03 Hans Deragon
  2005-11-14 20:56 ` Jeff Moyer
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Hans Deragon @ 2005-11-14 20:03 UTC (permalink / raw)
  To: autofs

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.

   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).

   I have not experienced this under Fedora Core 4 (FC4).


Best regards,
Hans Deragon
--
Consultant en informatique/Software Consultant
Deragon Informatique inc.
http://www.deragon.biz        Open source (contribution):
mailto://hans@deragon.biz     http://autopoweroff.deragon.biz

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2005-12-01 16:24 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-14 20:03 auto.net gets a key with a path under SLES9 Hans Deragon
2005-11-14 20:56 ` Jeff Moyer
2005-11-15 13:29 ` Ian Kent
2005-11-15 14:31   ` Jeff Moyer
2005-11-15 16:14     ` Ian Kent
2005-11-15 16:28       ` Hans Deragon
2005-11-15 16:40         ` Ian Kent
2005-11-15 17:14           ` Jeff Moyer
2005-11-17 18:23             ` Hans Deragon
2005-11-25 21:17 ` Hans Deragon
2005-11-27 13:40   ` Ian Kent
2005-11-28 17:53     ` Hans Deragon
2005-12-01 16:24       ` Ian Kent
2005-11-30 19:46     ` Hans Deragon
2005-12-01 16:20       ` Ian Kent

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.