summaryrefslogtreecommitdiff
path: root/src/src/expand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/src/expand.c')
-rw-r--r--src/src/expand.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/src/expand.c b/src/src/expand.c
index b4cc79d4b..5bb9df1b6 100644
--- a/src/src/expand.c
+++ b/src/src/expand.c
@@ -1851,7 +1851,9 @@ switch (vp->type)
start_offset = SPOOL_DATA_START_OFFSET;
}
}
- lseek(deliver_datafile, start_offset, SEEK_SET);
+ if (lseek(deliver_datafile, start_offset, SEEK_SET) < 0)
+ log_write(0, LOG_MAIN|LOG_PANIC_DIE, "deliver_datafile lseek: %s",
+ strerror(errno));
len = read(deliver_datafile, body, len);
if (len > 0)
{