* rc.autofs.in > getnismounts > error?
@ 2003-11-24 11:00 BRINER Cedric
0 siblings, 0 replies; 2+ messages in thread
From: BRINER Cedric @ 2003-11-24 11:00 UTC (permalink / raw)
To: autofs
hello,
I think that I've found a small mistake in the initialization script of
autofs-4.1.0.
in the function:
function getnismounts()
{
YPMAP=`catnismap auto.master`
if [ -z "$YPMAP" ]; then
YPMAP=`catnismap`
fi
echo $YPMAP
}
The fact is that on my machine the line:
YPMAP=`catnismap auto.master`
remove the "\n" of what ""catnismap auto.master"" returns. And then the
read functions will not works and so on...
So in my case, I've simply changed the above function like this:
function getnismounts()
{
YPMAP=`catnismap auto.master`
if [ -z "$YPMAP" ]; then
catnismap
else
catnismap auto.master
fi
}
and everything works perflectly well.
Regards
Cédric BRINER
PS. thanks for your work!
--
+41(o)\ at
76/\ -o762 briner/ \infomaniak
577/ \ / \
. . . . . . . -=Cedric Briner=- . . .ch - dot
/
46b rue Jacques-Dalphin,CH-1227 Geneva \
^ permalink raw reply [flat|nested] 2+ messages in thread
* rc.autofs.in > getnismounts > error?
@ 2003-11-24 12:13 BRINER Cedric
0 siblings, 0 replies; 2+ messages in thread
From: BRINER Cedric @ 2003-11-24 12:13 UTC (permalink / raw)
To: autofs
hello,
I think that I've found a small mistake in the initialization script of
autofs-4.1.0.
in the function:
function getnismounts()
{
YPMAP=`catnismap auto.master`
if [ -z "$YPMAP" ]; then
YPMAP=`catnismap`
fi
echo $YPMAP
}
The fact is that on my machine the line:
YPMAP=`catnismap auto.master`
remove the "\n" of what ""catnismap auto.master"" returns. And then the
read functions will not works and so on...
So in my case, I've simply changed the above function like this:
function getnismounts()
{
YPMAP=`catnismap auto.master`
if [ -z "$YPMAP" ]; then
catnismap
else
catnismap auto.master
fi
}
and everything works perflectly well.
Regards
Cédric BRINER
PS. thanks for your work!
--
+41(o)\ at
76/\ -o762 briner/ \infomaniak
577/ \ / \
. . . . . . . -=Cedric Briner=- . . .ch - dot
/
46b rue Jacques-Dalphin,CH-1227 Geneva \
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-11-24 12:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-24 12:13 rc.autofs.in > getnismounts > error? BRINER Cedric
-- strict thread matches above, loose matches on Subject: below --
2003-11-24 11:00 BRINER Cedric
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.