When I run duperemove --fdupes on a list that contains two files that are hard linked to each other, duperemove crashes.
root@fedora:~/testing# mkdir test
root@fedora:~/testing# echo hi > test/file1
root@fedora:~/testing# ln test/file1 test/file2
root@fedora:~/testing# echo $'test/file1\ntest/file2' | duperemove --fdupes
ERROR: filerec.c:140
[stack trace follows]
duperemove(+0x132b2) [0x55d945dc92b2]
duperemove(+0xf690) [0x55d945dc5690]
duperemove(+0x24d8) [0x55d945db84d8]
/lib64/libc.so.6(+0x3575) [0x7fa1e4a3f575]
/lib64/libc.so.6(__libc_start_main+0x88) [0x7fa1e4a3f628]
duperemove(+0x4f45) [0x55d945dbaf45]
Aborted (core dumped)
When I run
duperemove --fdupeson a list that contains two files that are hard linked to each other,duperemovecrashes.