mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
maint: avoid syntax-check failure from previous commit
* src/copy-file-data.c (sparse_copy): Use nullptr instead of NULL.
This commit is contained in:
1 parent
cf36efedc0
commit
418d4084b4
1 file changed
+1
-1
@@ -148,7 +148,7 @@ sparse_copy (int src_fd, int dest_fd, char **abuf, idx_t buf_size,
|
||||
{
|
||||
/* Don’t treat EFBIG as a reportable error from copy_file_range.
|
||||
If the input is at EOF and the output position is 2**63 - 1,
|
||||
copy_file_range (ifd, NULL, ofd, NULL, 2146435072, 0)
|
||||
copy_file_range (ifd, nullptr, ofd, nullptr, 2146435072, 0)
|
||||
incorrectly fails with EFBIG. Problem observed on Ubuntu 25.10
|
||||
x86-64 with Linux kernel 6.17.0-8-generic #8-Ubuntu. */
|
||||
if (errno == EFBIG)
|
||||
|
||||
Reference in new issue
Block a user