Skip to content

scrub crashes when called with "-D somename" flag on symlink to regular file #18

@shiryaevfed

Description

@shiryaevfed

When I call "scrub -D somename" on symlink, scrub crashes after wiping a file; symlink not renamed. If "-r" flag get added, scrub crashes too, and neither destination file nor symlink removed.

How to reproduce:
$ echo "test" > a
$ ln -s a b
$ scrub -r -D scrubbed b
...
scrub: scrub.c:625: scrub_dirent: Assertion `ftype == FILE_REGULAR' failed.
Abort (core dumped)
$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions