]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hardlink: fix 0-sized file processing
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Mon, 28 Oct 2024 18:19:34 +0000 (19:19 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 31 Oct 2024 08:43:52 +0000 (09:43 +0100)
commit91bd4db8260814298166604073a67ab8e1030a01
treea77dca75dcf9f5bdf2537f649de595bc9c2dd139
parentb4874971197255988a77b32779af02e207433c8c
hardlink: fix 0-sized file processing

The manual says that -s0 will process 0-sized files normally,
but as it stands (a) hardlink considers 0-sized files unlinkable
(so, with -l, unlistable) and (b) fileeq considers reading an empty
prologue to be an error
lib/fileeq.c
misc-utils/hardlink.c