X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/3a9262974035b6b8efebffcdf50a2371f3636477..b66fecb428871a3eb274d9370671f1eaf8c5ccec:/src/src/spool_out.c?ds=sidebyside diff --git a/src/src/spool_out.c b/src/src/spool_out.c index a4a734a1a..46a490a93 100644 --- a/src/src/spool_out.c +++ b/src/src/spool_out.c @@ -92,7 +92,7 @@ double-check the mode because the group setting doesn't always get set automatically. */ if (fd >= 0) - if (fchown(fd, exim_uid, exim_gid) || fchmod(fd, SPOOL_MODE)) + if (exim_fchown(fd, exim_uid, exim_gid, temp_name) || fchmod(fd, SPOOL_MODE)) { DEBUG(D_any) debug_printf("failed setting perms on %s\n", temp_name); (void) close(fd); fd = -1;