From owner-freebsd-bugs Mon Jan 21 13:10:13 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3B4B037B405 for ; Mon, 21 Jan 2002 13:10:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0LLA2E27670; Mon, 21 Jan 2002 13:10:02 -0800 (PST) (envelope-from gnats) Date: Mon, 21 Jan 2002 13:10:02 -0800 (PST) Message-Id: <200201212110.g0LLA2E27670@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ian Dowse Subject: Re: bin/12244: realpath() fails when there is no permission to read the WD Reply-To: Ian Dowse Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/12244; it has been noted by GNATS. From: Ian Dowse To: freebsd-gnats-submit@freebsd.org Cc: Subject: Re: bin/12244: realpath() fails when there is no permission to read the WD Date: Mon, 21 Jan 2002 21:06:59 +0000 Adding to the audit trail: In message <20020121021534.A853@v-ger.we.lc.ehu.es>, "Jose M. Alcaide" writes: >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