Skip to content

Confusing warning message when attempting to modify a directory without sufficient permissions #1561

@umanwizard

Description

@umanwizard
~ ❯❯❯ find bin
bin
bin/test.c
~ ❯❯❯ tar cf test.tar bin
~ ❯❯❯ tar xf test.tar -C /
bin/: Can't restore time
bin/test.c: Can't create 'bin/test.c'
tar: Error exit delayed from previous errors.

It would be better if bin/: Can't restore time said why it failed (in this case: presumably EPERM or EROFS). "Can't restore time" by itself is rather cryptic.

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