Skip to content

tar: NTFS ADS case? #12

Description

@woodruffw

This is another weird one, not sure what category it falls under: NTFS has alternate data streams, e.g. opening foo.txt:bar creates an ADS on foo.txt with contents that are distinct from foo.txt.

I think in practice this means that a tar member that accidentally (or intentionally) has a colon in its name will create an ADS, rather than a verbatim file with that name.

I suspect that a hardened tar extractor should reject these names as invalid, since they probably don't represent (honest) user intent. But I'm not 100% sure, since they're arguably just another form of file and a tar extractor can't possibly handle all of the ways in which host FSes do things like ADSes/resource forks/etc.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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