]> Savannah Git Hosting - gnulib.git/commit
lseek: port around macOS SEEK_HOLE glitch
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 16 Nov 2021 06:17:44 +0000 (22:17 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 16 Nov 2021 06:21:13 +0000 (22:21 -0800)
commit1a268176fbb184e393c98575e61fe692264c7d91
tree66974b92db6006b9bb5d5e77bd8150d2e0421314
parent4db8db34112b86ddf8bac48f16b5acff732b5fa9
lseek: port around macOS SEEK_HOLE glitch

Problem reported by Sudhip Nashi (Bug#51857#47).
* lib/lseek.c (rpl_lseek): Work around macOS lseek+SEEK_HOLE
returning -1 with ENXIO if there are no holes before EOF,
contrary to the macOS documentation.
ChangeLog
lib/lseek.c