]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: gpt: use ul_strtou16 for attribute bit parsing
authorJamie Magee <jamie.magee@gmail.com>
Mon, 4 May 2026 15:47:59 +0000 (08:47 -0700)
committerJamie Magee <jamie.magee@gmail.com>
Mon, 4 May 2026 15:47:59 +0000 (08:47 -0700)
commit8dce82b3b7ab5e29133bd0bb41ba2f5d04235648
tree9a7c7b3c263e2927413db9a963960cea7f0a5727
parent3ea35fa75f20e6c99a073660d807ccc7fa25086d
libfdisk: gpt: use ul_strtou16 for attribute bit parsing

Replace bare strtol() with ul_strtou16() which folds the errno/end-pointer/empty-input checks into one call and uses a uint16_t result type matching the bit-index domain. Also add udevadm settle between write/read sfdisk calls in the new attribute subtests.
libfdisk/src/gpt.c
tests/ts/sfdisk/gpt