From 8742e419a129f4e6d08167b8b787255fa66eaecd Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 8 Feb 2026 10:19:13 +0000 Subject: Better error messages... --- src/qmail-remote/smtproutes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/qmail-remote/smtproutes.c b/src/qmail-remote/smtproutes.c index 987961c..1791ba8 100644 --- a/src/qmail-remote/smtproutes.c +++ b/src/qmail-remote/smtproutes.c @@ -200,10 +200,10 @@ int smtproutes_init (smtproutes *routes) memcpy(tmp, cdbfile, cdblen) ; memcpy(tmp + cdblen, ":XXXXXX", 8) ; fdc = mkstemp(tmp) ; - if (fdc == -1) qmailr_tempusys("mkstemp") ; + if (fdc == -1) qmailr_tempusys("mkstemp ", tmp) ; smtproutes_compile(fdr, fdc) ; if (lseek(fdc, 0, SEEK_SET) == -1) qmailr_tempusys("lseek") ; - if (fsync(fdc) == -1) qmailr_tempusys("fsync ", "run/qmail-remote/smtproutes.cdb") ; + if (fsync(fdc) == -1) qmailr_tempusys("fsync ", tmp) ; fd_close(fdr) ; if (rename(tmp, cdbfile) == -1) unlink_void(tmp) ; } -- cgit v1.3.1