Skip to content

touch: "setting times of" instead of "cannot touch" for an existing file the user cannot write #15021

Description

@abendrothj
# f is root:root, mode 644; run as nobody
$ touch f
touch: setting times of 'f': Permission denied

GNU 9.12 (built from source) prints touch: cannot touch 'f': Permission denied. uutils uses "cannot touch" only when it fails to create a missing file; for an existing file any failure is reported as "setting times of".

uutils main at 2b85f6f, Linux.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions