X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/3a9262974035b6b8efebffcdf50a2371f3636477..b66fecb428871a3eb274d9370671f1eaf8c5ccec:/src/src/tls-gnu.c diff --git a/src/src/tls-gnu.c b/src/src/tls-gnu.c index ad55f95cd..fe048ba62 100644 --- a/src/src/tls-gnu.c +++ b/src/src/tls-gnu.c @@ -705,7 +705,7 @@ if (rc < 0) temp_fn = string_copy(US"%s.XXXXXXX"); if ((fd = mkstemp(CS temp_fn)) < 0) /* modifies temp_fn */ return tls_error_sys(US"Unable to open temp file", errno, NULL, errstr); - (void)fchown(fd, exim_uid, exim_gid); /* Probably not necessary */ + (void)exim_chown(temp_fn, exim_uid, exim_gid); /* Probably not necessary */ /* GnuTLS overshoots! * If we ask for 2236, we might get 2237 or more.