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

Julian Andres Klode 2134496 at bugs.launchpad.net
Sun Jan 25 15:59:22 UTC 2026


Fixed in 0.5.0-0ubuntu1

** Changed in: rust-coreutils (Ubuntu)
       Status: Fix Committed => 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:
  Fix Released

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