ports/mail/mblaze/patches/patch-mdeliver_c

19 lines
458 B
Text

mrefile or mdeliver -M needs fattr for utimes(2), backport of
https://git.vuxu.org/mblaze/commit/?id=9d66764
Index: mdeliver.c
--- mdeliver.c.orig
+++ 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];