mrefile/mdeliver: -M needs the `fattr' pledge promise for utimes(2)

Message-Id: <2Z5ISO2SNIGZU.2E8B1F41F84RV@venera>
pull/231/head
Omar Polo 2 years ago committed by Leah Neukirchen
parent e6813fd07c
commit 9d66764434

@ -355,7 +355,11 @@ usage2:
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];

Loading…
Cancel
Save