Skip to content

Commit

Permalink
mrefile/mdeliver: -M needs the `fattr' pledge promise for utimes(2)
Browse files Browse the repository at this point in the history
Message-Id: <2Z5ISO2SNIGZU.2E8B1F41F84RV@venera>
  • Loading branch information
omar-polo authored and leahneukirchen committed Aug 26, 2022
1 parent e6813fd commit 9d66764
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mdeliver.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,11 @@ main(int argc, char *argv[])
if (argc != optind+1)
goto usage2;

xpledge("stdio rpath wpath cpath", "");
xpledge("stdio rpath wpath cpath fattr", "");
if (!preserve_mtime && !Mflag) {
/* drop fattr */
xpledge("stdio rpath wpath cpath", "");
}

targetdir = argv[optind];

Expand Down

0 comments on commit 9d66764

Please sign in to comment.