From: Timo Sirainen Date: Mon, 25 Nov 2019 11:19:00 +0000 (+0200) Subject: fs-posix: Log lseek() error with fs_set_error() X-Git-Tag: 2.3.10~217 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1912110a40bf6fde8edfb000c5db218a97d8cac4;p=thirdparty%2Fdovecot%2Fcore.git fs-posix: Log lseek() error with fs_set_error() Makes it consistent with logging the read() error. --- diff --git a/src/lib-fs/fs-posix.c b/src/lib-fs/fs-posix.c index fb5967168f..f9437f3b7c 100644 --- a/src/lib-fs/fs-posix.c +++ b/src/lib-fs/fs-posix.c @@ -432,8 +432,8 @@ static ssize_t fs_posix_read(struct fs_file *_file, void *buf, size_t size) if (file->seek_to_beginning) { file->seek_to_beginning = FALSE; if (lseek(file->fd, 0, SEEK_SET) < 0) { - fs_set_critical(_file->fs, "lseek(%s, 0) failed: %m", - file->full_path); + fs_set_error(_file->fs, "lseek(%s, 0) failed: %m", + file->full_path); return -1; } }