Package: findutils
Version: 4.6.0+git+20161106-2
Severity: important
Dear Maintainer,
This is a regression as it worked in Jessie and works again in Buster, but
fails in Stretch:
(note: i have a script to remove dangling symlinks that relied on
'find ... -printf %Y' returning 'N' for broken symlinks that doesn't
work because of this bug)
[Stretch]
(INcorrect behavior)
$ lsb_release -cs
stretch
$ mkdir symlink-test
$ cd symlink-test
$ ln -sf /tmp fronk
$ ln -sf /adfasdf blonk
$ ln -sf spizzle spizzle
$ find . -xdev -mindepth 1 -maxdepth 1 -type l -printf "%Y: %p # ->%l \n"
l: ./blonk # ->/adfasdf
** this symlink should be marked (N) Nonexistent, rather than l
d: ./fronk # ->/tmp
L: ./spizzle # ->spizzle
** yay, 'find' identifies (self-referential) loops correctly
[Buster]
(correct behavior)
$ lsb_release -cs
buster
$ mkdir symlink-test
$ cd symlink-test
$ ln -sf /tmp fronk
$ ln -sf /adfasdf blonk
$ ln -sf spizzle spizzle
$ find . -xdev -mindepth 1 -maxdepth 1 -type l -printf "%Y: %p # ->%l \n"
L: ./spizzle # ->spizzle
d: ./fronk # ->/tmp
N: ./blonk # ->/adfasdf
** this symlink is *correctly* marked (N) Nonexistent
[Jessie]
(correct behavior)
$ mkdir symlink-test
$ cd symlink-test
$ ln -sf /tmp fronk
$ ln -sf /adfasdf blonk
$ ln -sf spizzle spizzle
$ find . -xdev -mindepth 1 -maxdepth 1 -type l -printf "%Y: %p # ->%l \n"
L: ./spizzle # ->spizzle
N: ./blonk # ->/adfasdf
** this symlink is *correctly* marked (N) Nonexistent
d: ./fronk # ->/tmp
thanks,
--stephen
-- System Information:
Debian Release: 9.13
APT prefers oldstable-updates
APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.19.0-0.bpo.9-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages findutils depends on:
ii libc6 2.24-11+deb9u4
ii libselinux1 2.6-3+b3
findutils recommends no packages.
Versions of packages findutils suggests:
ii mlocate 0.26-2
-- debconf-show failed