From mboxrd@z Thu Jan 1 00:00:00 1970 From: BRINER Cedric Subject: rc.autofs.in > getnismounts > error? Date: Mon, 24 Nov 2003 13:13:46 +0100 Sender: autofs-bounces@linux.kernel.org Message-ID: <3FC1F5FA.9090803@infomaniak.ch> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: autofs-bounces@linux.kernel.org Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: autofs@linux.kernel.org hello, I think that I've found a small mistake in the initialization script of=20 autofs-4.1.0. in the function: function getnismounts() { YPMAP=3D`catnismap auto.master` if [ -z "$YPMAP" ]; then YPMAP=3D`catnismap` fi echo $YPMAP } The fact is that on my machine the line: YPMAP=3D`catnismap auto.master` remove the "\n" of what ""catnismap auto.master"" returns. And then the=20 read functions will not works and so on... So in my case, I've simply changed the above function like this: function getnismounts() { YPMAP=3D`catnismap auto.master` if [ -z "$YPMAP" ]; then catnismap else catnismap auto.master fi } and everything works perflectly well. Regards C=C3=A9dric BRINER PS. thanks for your work! -- +41(o)\ at =20 76/\ -o762 briner/ \infomaniak 577/ \ / \ . . . . . . . -=3DCedric Briner=3D- . . .ch - dot=20 / 46b rue Jacques-Dalphin,CH-1227 Geneva \