bug-coreutils@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: Nineteendo INC <nineteendo19d0@gmail.com>
To: 70714@debbugs.gnu.org
Subject: bug#70714: realpath no error for unreadable-symlink
Date: Thu, 2 May 2024 08:16:26 +0200	[thread overview]
Message-ID: <5F0F3A02-ADEB-438D-B5A3-F3344F2C7BDB@gmail.com> (raw)

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





             reply	other threads:[~2024-05-02 12:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-02  6:16 Nineteendo INC [this message]
2024-05-02 13:44 ` bug#70714: realpath no error for unreadable-symlink Pádraig Brady

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.gnu.org/mailman/listinfo/bug-coreutils

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5F0F3A02-ADEB-438D-B5A3-F3344F2C7BDB@gmail.com \
    --to=nineteendo19d0@gmail.com \
    --cc=70714@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).