'cksum -a crc' misbehaved on aarch64 with 32-bit uint_fast32_t.
[bug introduced in coreutils-9.6]
+ dd with the 'nocache' flag will now detect all failures to drop the
+ cache for the whole file. Previously it may have erroneously succeeded.
+ [bug introduced with the "nocache" feature in coreutils-8.11]
+
'ls -Z dir' would crash.
[bug introduced in coreutils-9.6]
/* Discard the cache from the current offset of either
STDIN_FILENO or STDOUT_FILENO.
- Return true on success. */
+ Return true on success.
+ Return false on failure, with errno set. */
static bool
invalidate_cache (int fd, off_t len)
if (clen == 0)
offset -= offset % page_size;
adv_ret = posix_fadvise (fd, offset, clen, POSIX_FADV_DONTNEED);
+ errno = adv_ret;
#else
errno = ENOTSUP;
#endif
}
- return adv_ret != -1 ? true : false;
+ return adv_ret == 0;
}
/* Read from FD into the buffer BUF of size SIZE, processing any