git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Intercept chown()/fchown() failure and emit a pointer to the bugreport. Closes 2391
[exim.git]
/
src
/
src
/
spool_out.c
diff --git
a/src/src/spool_out.c
b/src/src/spool_out.c
index a4a734a1ad196a5ba9661713d90279682ab2168a..46a490a9324266ead100f2adf3e1d05643192eda 100644
(file)
--- 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)
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;
{
DEBUG(D_any) debug_printf("failed setting perms on %s\n", temp_name);
(void) close(fd); fd = -1;