bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#70714: realpath no error for unreadable-symlink


From: Pádraig Brady
Subject: bug#70714: realpath no error for unreadable-symlink
Date: Thu, 2 May 2024 14:44:18 +0100
User-agent: Mozilla Thunderbird Beta

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]