From owner-freebsd-bugs Tue Mar 28 8:45:37 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from polaris.we.lc.ehu.es (polaris.we.lc.ehu.es [158.227.6.43]) by hub.freebsd.org (Postfix) with ESMTP id AAC2337BD25 for ; Tue, 28 Mar 2000 08:44:32 -0800 (PST) (envelope-from jose@we.lc.ehu.es) Received: from we.lc.ehu.es (v-ger [158.227.6.179]) by polaris.we.lc.ehu.es (8.9.1/8.9.1) with ESMTP id SAA03020; Tue, 28 Mar 2000 18:40:06 +0200 (MET DST) Message-ID: <38E0E067.B04452A@we.lc.ehu.es> Date: Tue, 28 Mar 2000 18:40:07 +0200 From: "Jose M. Alcaide" Organization: Universidad del =?iso-8859-1?Q?Pa=EDs?= Vasco - Dpto. de Electricidad y =?iso-8859-1?Q?Electr=F3nica?= X-Mailer: Mozilla 4.72 [en] (X11; U; FreeBSD 3.4-RELEASE i386) X-Accept-Language: es-ES, es, en-US, en MIME-Version: 1.0 To: Mikhail Teterin Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/7063: mount fails if $PWD does not exist References: <200003281630.IAA25713@freefall.freebsd.org> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Mikhail Teterin wrote: > > The following reply was made to PR bin/7063; it has been noted by GNATS. > > From: Mikhail Teterin > To: freebsd-gnats-submit@FreeBSD.org > Cc: > Subject: Re: bin/7063: mount fails if $PWD does not exist > Date: Tue, 28 Mar 2000 11:21:33 -0500 > > This is a multi-part message in MIME format. > --------------94B7256161EBABF294F5ABEB > Content-Type: text/plain; charset=us-ascii > Content-Transfer-Encoding: 7bit > > An almost identical problem still exists :( > > If the directory was just plain removed after one cd-ed > into it, mount will work. But if the entire file-system > was unmounted, mount will fail: > > root@rtfm:src/sys/compile (123) mount /cdrom0 > mount: .: Not a directory > > even though none of its parameteres involve current directory > or the unmounted file-system. > > It appears, the problem is with realpath(3), which mount > invokes. realpath() insists on . being openable. > > May be, something like the attached is needed (damn the goto)? > > In any case, an entry in the CAVEATS section of realpath(3) > is in order explaining its behavior in case `.' does not > exist. > I submitted a related PR: bin/12244 -- JMA ----------------------------------------------------------------------- José Mª Alcaide | mailto:jose@we.lc.ehu.es Universidad del País Vasco | mailto:jmas@FreeBSD.org Dpto. de Electricidad y Electrónica | http://www.we.lc.ehu.es/~jose Facultad de Ciencias - Campus de Lejona | Tel.: +34-946012479 48940 Lejona (Vizcaya) - SPAIN | Fax: +34-946013071 ----------------------------------------------------------------------- "Beware of Programmers who carry screwdrivers" -- Leonard Brandwein To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message