]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
istream: Fail in the default stat() implementation if stream_errno is set.
authorTimo Sirainen <tss@iki.fi>
Mon, 4 Feb 2013 18:13:26 +0000 (20:13 +0200)
committerTimo Sirainen <tss@iki.fi>
Mon, 4 Feb 2013 18:13:26 +0000 (20:13 +0200)
src/lib/istream.c

index 4b14728d69ce24d976b3e56c943658bd8aeb4fbd..f941418a066f456b2400090962890eab849d1ef3 100644 (file)
@@ -630,7 +630,7 @@ i_stream_default_stat(struct istream_private *stream, bool exact)
        const struct stat *st;
 
        if (stream->parent == NULL)
-               return 0;
+               return stream->istream.stream_errno == 0 ? 0 : -1;
 
        if (i_stream_stat(stream->parent, exact, &st) < 0)
                return -1;