Subject: bug#70714: realpath no error for unreadable-symlink

From: Pádraig Brady <[email-masked]>
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@Stefans-iMac ~ % ln -s . src
> wannes@Stefans-iMac ~ % grealpath -e src/..
> /Users
> wannes@Stefans-iMac ~ % chmod -h 000 src
> wannes@Stefans-iMac ~ % grealpath -e src/..
> /Users/wannes
> 
> Expected behaviour:
> 
> wannes@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