]> git.ipfire.org Git - thirdparty/systemd.git/commit
tree-wide: fix lseek() parameter order 39715/head
authorLennart Poettering <lennart@poettering.net>
Thu, 13 Nov 2025 13:15:33 +0000 (14:15 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 13 Nov 2025 13:19:29 +0000 (14:19 +0100)
commitf5452477d40cfe2f971dbcb5a98f2888d5fac640
treefc46bc32cee0606adb2b39e013a433faf977159f
parentdbc25d84aeff8e9196c002a778fbaf91d979a1b9
tree-wide: fix lseek() parameter order

The offset must be specified first, 'whence' second. Fix that.

Except for one case this fix doesn't actually fix any real bug, since
SEEK_SET is defined as 0 anyway, hence the swapped arguments have no
effect.

The one exception is the MTD smartmedia code, which I guess indicates
that noone has been using that hw anymore in a long time?
src/home/homed-home.c
src/import/pull-raw.c
src/login/logind-seat.c
src/test/test-copy.c
src/test/test-process-util.c
src/udev/mtd_probe/probe_smartmedia.c