aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2022-08-26 11:18:06 +0200
committerLeah Neukirchen <leah@vuxu.org>2022-08-26 12:36:10 +0200
commit9d66764434f640f8c36bbbf93a30d8f5d44ee6c9 (patch)
tree409ed7d3392c0ab7b50c4492912093e327653c4d
parente6813fd07cb102f5e0826bf33560d4cfa255073a (diff)
downloadmblaze-9d66764434f640f8c36bbbf93a30d8f5d44ee6c9.tar.gz
mblaze-9d66764434f640f8c36bbbf93a30d8f5d44ee6c9.tar.xz
mblaze-9d66764434f640f8c36bbbf93a30d8f5d44ee6c9.zip
mrefile/mdeliver: -M needs the `fattr' pledge promise for utimes(2)
Message-Id: <2Z5ISO2SNIGZU.2E8B1F41F84RV@venera>
-rw-r--r--mdeliver.c6
1 files changed, 5 insertions, 1 deletions
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];