From 9d66764434f640f8c36bbbf93a30d8f5d44ee6c9 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Fri, 26 Aug 2022 11:18:06 +0200 Subject: mrefile/mdeliver: -M needs the `fattr' pledge promise for utimes(2) Message-Id: <2Z5ISO2SNIGZU.2E8B1F41F84RV@venera> --- mdeliver.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mdeliver.c b/mdeliver.c index c9e00c5..5269929 100644 --- a/mdeliver.c +++ b/mdeliver.c @@ -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]; -- cgit 1.4.1