[Bug 2134496] Re: readlink: traverse symlinks before resolving ..

Bug Watch Updater 2134496 at bugs.launchpad.net
Thu Dec 11 18:27:27 UTC 2025


** Changed in: rust-coreutils
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2134496

Title:
  readlink: traverse symlinks before resolving ..

Status in rust-coreutils:
  Fix Released
Status in rust-coreutils package in Ubuntu:
  New

Bug description:
  The readlink command from GNU coreutils and the one from uutil
  coreutils behave differently in case the path contains symlinks and
  `..`. GNU readlink traverses symlinks first, but uutils resolves `..`
  first.

  Example from Ubuntu 25.10 (questing):

  ```sh
  $ gnureadlink -f /sys/class/block/nvme0n1p1/..
  /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/nvme/nvme0/nvme0n1
  $ /usr/lib/cargo/bin/coreutils/readlink -f /sys/class/block/nvme0n1p1/..
  /sys/class/block
  ```

  This breaks dracut (see also https://github.com/dracut-ng/dracut-
  ng/pull/1776).

To manage notifications about this bug go to:
https://bugs.launchpad.net/rust-coreutils/+bug/2134496/+subscriptions




More information about the foundations-bugs mailing list