Skip to content

fsck.fat does not repair badly named file called .. or . #169

Description

@seanyoung

Files called . or .. are not accessible on linux, since those filenames are hardcoded in the kernel as path walks.

[root@xywoleh ~]# fsck.vfat -l /dev/loop0p1 
fsck.fat 4.2 (2021-01-31)
Checking file /System Volume Information (SYSTEM~1)
Checking file /$RECYCLE.BIN
Checking file /FOO
Checking file /System Volume Information/WPSettings.dat (WPSETT~1.DAT)
Checking file /System Volume Information/IndexerVolumeGuid (INDEXE~1)
Checking file /$RECYCLE.BIN/DESKTOP.INI
Checking file /FOO/.. (C59D~1)
/dev/loop0p1: 7 files, 7/15815 clusters

I can provide disk image if anyone is interested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions