Skip to content

shred -u should deallocate file independently from dir permissions #12287

@pixelb

Description

@pixelb
mkdir rod
cd rod
truncate -s 1M file
chmod a-w .
uu_shred -u file
test -s file && echo still allocated

I.e. shred should ftruncate() rather than relying on unlink()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions