mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +00:00
feof(3) returns non-zero at EOF, not necessarily 1.
On Illumos at least it returns a value other than 1.
This commit is contained in:
parent
cbf73e19bb
commit
bbfd430cf9
@ -827,10 +827,10 @@ iolog_eof(struct iolog_file *iol)
|
|||||||
|
|
||||||
#ifdef HAVE_ZLIB_H
|
#ifdef HAVE_ZLIB_H
|
||||||
if (iol->compressed)
|
if (iol->compressed)
|
||||||
ret = gzeof(iol->fd.g) == 1;
|
ret = gzeof(iol->fd.g) != 0;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
ret = feof(iol->fd.f) == 1;
|
ret = feof(iol->fd.f) != 0;
|
||||||
debug_return_int(ret);
|
debug_return_int(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user