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

Message-Id: <2Z5ISO2SNIGZU.2E8B1F41F84RV@venera>
This commit is contained in:
Omar Polo 2022-08-26 11:18:06 +02:00 committed by Leah Neukirchen
parent e6813fd07c
commit 9d66764434

View File

@ -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];