]> diplodocus.org Git - mdeliver/commitdiff
(main): Create the err directory before trying to store an error
authorepg <>
Sat, 24 Aug 2002 18:19:05 +0000 (18:19 +0000)
committerepg <>
Sat, 24 Aug 2002 18:19:05 +0000 (18:19 +0000)
message in it.

mdeliver.c

index 796f126efbcdadd68026fdc64f5dbcfb7c43fafa..a874869251e95fb3590de53c89db5e90a1caa92c 100644 (file)
@@ -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) {