fstat returns 0 on success and -1 on error. Since we have already
checked for error, ret must be zero. Therefore, any call to fstat on a
non-empty file will return -1/EOVERFLOW.
Restore the original logic that just did a byteswap. I don't really know
what the intention of the fixed commit was.
Fixes:
|
||
|---|---|---|
| .. | ||
| arm-compat-semi-stub.c | ||
| arm-compat-semi.c | ||
| config.c | ||
| console.c | ||
| guestfd.c | ||
| Kconfig | ||
| meson.build | ||
| stubs-all.c | ||
| stubs-system.c | ||
| syscalls.c | ||
| uaccess.c | ||
| user.c | ||