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


View this message in rfc822 format

From: Nineteendo INC <nineteendo19d0 <at> gmail.com>
To: 70714 <at> debbugs.gnu.org
Subject: bug#70714: realpath no error for unreadable-symlink
Date: Thu, 2 May 2024 08:16:26 +0200
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





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

Previous Next


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