]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
lib/ext2fs: llseek: simplify linux section
authorMike Gilbert <floppym@gentoo.org>
Tue, 7 Nov 2023 23:33:22 +0000 (23:33 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 4 Apr 2024 16:53:43 +0000 (12:53 -0400)
commit24181bb25e52fdecadbc7e434834e6ece85ff932
treec66e74629c0f7957778e3b8afc6f07d512d16f33
parentfed000ae01749e938d7c4e612fb9a6659127096c
lib/ext2fs: llseek: simplify linux section

On 32-bit musl systems, off_t is always 8 bytes regardless of
_FILE_OFFSET_BITS. The previous code did not cover this case.

The previous #ifdef logic was rather confusing, so I reworked it into a
more understandable form.

Bug: https://bugs.gentoo.org/908892
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Closes: https://github.com/tytso/e2fsprogs/pull/150
Signed-off-by: Sam James <sam@gentoo.org>
Link: https://lore.kernel.org/r/20231107233323.2013334-2-sam@gentoo.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/llseek.c