]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-fs: Fixed error handling for posix.write_stream_finish()
authorTimo Sirainen <tss@iki.fi>
Thu, 21 Oct 2010 17:56:24 +0000 (18:56 +0100)
committerTimo Sirainen <tss@iki.fi>
Thu, 21 Oct 2010 17:56:24 +0000 (18:56 +0100)
src/lib-fs/fs-posix.c

index 9538e2e75a43b2aed1f5c6143ea54d411e2b7aca..c8032bb5cee8bb598a024293bda21ddd52da8b50 100644 (file)
@@ -344,7 +344,7 @@ static int fs_posix_write_stream_finish(struct fs_file *_file, bool success)
        case FS_OPEN_MODE_RDONLY:
                i_unreached();
        }
-       return 0;
+       return ret;
 }
 
 static int