chiark / gitweb /
Drop ndk-patches/sysexits.h (see #1907)
[termux-packages] / packages / alpine / maildir.patch
1 --- ../cache/alpine-2.20/imap/src/osdep/unix/maildir.c  2016-12-15 23:03:33.602342634 +0000
2 +++ ./imap/src/osdep/unix/maildir.c     2016-12-15 23:15:58.433872870 +0000
3 @@ -9,7 +9,6 @@
4  #include <stdio.h>
5  #include <ctype.h>
6  #include <errno.h>
7 -extern int errno;              /* just in case */
8  #include "mail.h"
9  #include <pwd.h>
10  #include <sys/stat.h>
11 @@ -20,7 +19,6 @@
12  #include "misc.h"
13  #include "dummy.h"
14  #include "maildir.h"
15 -
16  /* Driver dispatch used by MAIL */
17  DRIVER maildirdriver = {
18    "md",                                /* driver name, yes it's md, not maildir */
19 @@ -1491,7 +1489,7 @@
20         }
21      } while (done == 0);
22  
23 -    if ((fd = open (path1,O_WRONLY|O_CREAT|O_EXCL,S_IREAD|S_IWRITE)) < 0) {
24 +    if ((fd = open (path1,O_WRONLY|O_CREAT|O_EXCL,S_IRUSR|S_IWUSR)) < 0) {
25         snprintf (tmp, sizeof(tmp), "Can't open append mailbox: %s", strerror (errno));
26         mm_log (tmp, ERROR);
27         return NIL;