-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
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):
$ 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/blockThis breaks dracut (see also dracut-ng/dracut-ng#1776).