Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Mar 2000 18:40:07 +0200
From:      "Jose M. Alcaide" <jose@we.lc.ehu.es>
To:        Mikhail Teterin <mi@aldan.algebra.com>
Cc:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: bin/7063: mount fails if $PWD does not exist
Message-ID:  <38E0E067.B04452A@we.lc.ehu.es>
References:  <200003281630.IAA25713@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Mikhail Teterin wrote:
> 
> The following reply was made to PR bin/7063; it has been noted by GNATS.
> 
> From: Mikhail Teterin <mi@aldan.algebra.com>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38E0E067.B04452A>