Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2002 02:15:34 +0100
From:      "Jose M. Alcaide" <jose@we.lc.ehu.es>
To:        iedowse@FreeBSD.org
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/12244: realpath() fails when there is no permission to read the WD
Message-ID:  <20020121021534.A853@v-ger.we.lc.ehu.es>
In-Reply-To: <200201201802.g0KI2FO11711@freefall.freebsd.org>; from iedowse@FreeBSD.org on Sun, Jan 20, 2002 at 10:02:15AM -0800
References:  <200201201802.g0KI2FO11711@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jan 20, 2002 at 10:02:15AM -0800, iedowse@FreeBSD.org wrote:
> Synopsis: realpath() fails when there is no permission to read the WD
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: iedowse
> State-Changed-When: Sun Jan 20 10:01:13 PST 2002
> State-Changed-Why: 
> 
> Is this problem still present in more recent releases?
> 
> http://www.FreeBSD.org/cgi/query-pr.cgi?pr=12244

Yes, it is. Realpath(3) continues using open()/fchdir() for
saving/restoring the current directory. I think that the getwd()/chdir()
method should be used as fallback.

-- 
****** Jose M. Alcaide  //  jose@we.lc.ehu.es  //  jmas@FreeBSD.org ******
** "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?20020121021534.A853>