From: Chris Feist Subject: Re: [patch] Maintain backwards compatibility w/ local file maps w/o etc. Date: Fri, 22 Oct 2004 10:13:26 -0500 Sender: autofs-bounces@linux.kernel.org Message-ID: <1098458006.3014.58.camel@gold.msp.redhat.com> References: <1098291410.3527.18.camel@localhost.localdomain> <1098372523.9364.17.camel@gold.msp.redhat.com> Reply-To: cfeist@redhat.com Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: autofs-bounces@linux.kernel.org Content-Type: text/plain; charset="us-ascii" To: Ian Kent , autofs@linux.kernel.org > But the patch doesn't appear to fix that problem. > Can you explain? > > Ian > Oops, sorry about that. I didn't send you the correct version of the patch. The problem is in the added lines, it says 'maptype=program' it should say 'maptype=file'... Here's the corrected patch... Thanks, Chris s-4.1.3/samples/rc.autofs.in.filemap-etc-append 2004-10-20 11:47:05.227372963 -0500 +++ autofs-4.1.3/samples/rc.autofs.in 2004-10-20 11:47:06.947345831 -0500 @@ -206,6 +206,9 @@ map=`echo /etc/$map | sed 's^//^/^g'` elif [ -f "$map" ]; then maptype=file + elif [ -f "/etc/$map" ]; then + maptype=file + map=`echo /etc/$map | sed 's^//^/^g'` elif [ "$map" = "hesiod" -o "$map" = "userhome" ] ; then maptype=$map map=