X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=spool.c;h=25c6a99d2cee98929a2f50f81803cc24a703900e;hb=d6424680aa3c46904affb7e27d027b1d0fae0ade;hp=2208159845a9820e08a65dfff3a79aac1d5112aa;hpb=94fdb70bd9fdb91a6aa11a66b91cf424a7ef1ec8;p=people%2Fms%2Fdma.git diff --git a/spool.c b/spool.c index 2208159..25c6a99 100644 --- a/spool.c +++ b/spool.c @@ -123,9 +123,11 @@ writequeuef(struct qitem *it) int error; int queuefd; - queuefd = open_locked(it->queuefn, O_CREAT|O_EXCL|O_RDWR, 0600); + queuefd = open_locked(it->queuefn, O_CREAT|O_EXCL|O_RDWR, 0660); if (queuefd == -1) return (-1); + if (fchmod(queuefd, 0660) < 0) + return (-1); it->queuef = fdopen(queuefd, "w+"); if (it->queuef == NULL) return (-1);