It was supposed to check that it succeeds, not fails.
struct bzlib_istream *zstream = (struct bzlib_istream *) stream;
const struct stat *st;
- if (i_stream_stat(stream->parent, FALSE, &st) < 0) {
+ if (i_stream_stat(stream->parent, FALSE, &st) == 0) {
if (memcmp(&zstream->last_parent_statbuf,
st, sizeof(*st)) == 0) {
/* a compressed file doesn't change unexpectedly,
struct lz4_istream *zstream = (struct lz4_istream *) stream;
const struct stat *st;
- if (i_stream_stat(stream->parent, FALSE, &st) < 0) {
+ if (i_stream_stat(stream->parent, FALSE, &st) == 0) {
if (memcmp(&zstream->last_parent_statbuf,
st, sizeof(*st)) == 0) {
/* a compressed file doesn't change unexpectedly,
struct lzma_istream *zstream = (struct lzma_istream *) stream;
const struct stat *st;
- if (i_stream_stat(stream->parent, FALSE, &st) < 0) {
+ if (i_stream_stat(stream->parent, FALSE, &st) == 0) {
if (memcmp(&zstream->last_parent_statbuf,
st, sizeof(*st)) == 0) {
/* a compressed file doesn't change unexpectedly,
struct zlib_istream *zstream = (struct zlib_istream *) stream;
const struct stat *st;
- if (i_stream_stat(stream->parent, FALSE, &st) < 0) {
+ if (i_stream_stat(stream->parent, FALSE, &st) == 0) {
if (memcmp(&zstream->last_parent_statbuf,
st, sizeof(*st)) == 0) {
/* a compressed file doesn't change unexpectedly,