Skip to content

Crash when running duperemove --fdupes on a list containing hard links #389

Description

@timando

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions