From: Hans Deragon <hans@deragon.biz>
To: autofs@linux.kernel.org
Subject: auto.net gets a key with a path under SLES9.
Date: Mon, 14 Nov 2005 15:03:38 -0500 [thread overview]
Message-ID: <4378ED9A.6090903@deragon.biz> (raw)
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
next reply other threads:[~2005-11-14 20:03 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-14 20:03 Hans Deragon [this message]
2005-11-14 20:56 ` auto.net gets a key with a path under SLES9 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4378ED9A.6090903@deragon.biz \
--to=hans@deragon.biz \
--cc=autofs@linux.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.