diff options
Diffstat (limited to 'src/src/spool_out.c')
-rw-r--r-- | src/src/spool_out.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/src/spool_out.c b/src/src/spool_out.c index 8d0ee7c71..62909915f 100644 --- a/src/src/spool_out.c +++ b/src/src/spool_out.c @@ -329,7 +329,8 @@ if (EXIMfsync(fileno(f)) < 0) /* Get the size of the file, and close it. */ -fstat(fd, &statbuf); +if (fstat(fd, &statbuf) != 0) + return spool_write_error(where, errmsg, US"fstat", temp_name, NULL); if (fclose(f) != 0) return spool_write_error(where, errmsg, US"close", temp_name, NULL); |