From: epg <> Date: Sat, 24 Aug 2002 18:19:05 +0000 (+0000) Subject: (main): Create the err directory before trying to store an error X-Git-Url: https://diplodocus.org/git/mdeliver/commitdiff_plain/8eaf626867fcfd1163316f0296b711ccd39799dc?ds=sidebyside;hp=ad1ffe088da4a832c08360bb9d3d6f2e6b074ca3 (main): Create the err directory before trying to store an error message in it. --- diff --git a/mdeliver.c b/mdeliver.c index 796f126..a874869 100644 --- a/mdeliver.c +++ b/mdeliver.c @@ -185,6 +185,7 @@ main(int argc, char *argv[]) * error message where later mail processors can find it. We * really can't do anything about it if this fails. */ memcpy(newfn, "err", 3); + mkdir("err", 0700); fd = open(newfn, O_WRONLY | O_EXCL | O_CREAT, 0644); errfile = fdopen(fd, "w"); if (errfile) {