GNU bug report logs - #70714
realpath no error for unreadable-symlink

Previous Next

Package: coreutils;

Reported by: Nineteendo INC <nineteendo19d0 <at> gmail.com>

Date: Thu, 2 May 2024 12:46:02 UTC

Severity: normal

Full log


Message #8 received at 70714 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Nineteendo INC <nineteendo19d0 <at> gmail.com>, 70714 <at> debbugs.gnu.org
Subject: Re: bug#70714: realpath no error for unreadable-symlink
Date: Thu, 2 May 2024 14:44:18 +0100
On 02/05/2024 07:16, Nineteendo INC wrote:
> coreutils version: stable 9.5 (bottled)
> OS version: macOS 13.6.6 (22G630)
> 
> `realpath` doesn’t behave correctly for unreadable symlinks:
> 
> wannes <at> Stefans-iMac ~ % ln -s . src
> wannes <at> Stefans-iMac ~ % grealpath -e src/..
> /Users
> wannes <at> Stefans-iMac ~ % chmod -h 000 src
> wannes <at> Stefans-iMac ~ % grealpath -e src/..
> /Users/wannes
> 
> Expected behaviour:
> 
> wannes <at> Stefans-iMac ~ % grealpath -e src/..
> grealpath: src/..: Permission denied

Right, looks like we'll have to cater for EACCES on darwin.
I'll have a look




This bug report was last modified 1 year and 100 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.