]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: (script) fix device name separator parsing
authorKarel Zak <kzak@redhat.com>
Wed, 3 Sep 2025 08:54:06 +0000 (10:54 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 3 Sep 2025 08:54:06 +0000 (10:54 +0200)
commit4eab9175dfd62c1d1a0bbc43a49ca8a85e9adac7
tree6bfe28c5d81cdebee9b824c77cf7093008278cf4
parent0c57a76da61e5ab1f15eada0553b2ef85026269c
libfdisk: (script) fix device name separator parsing

In the named-fields script format, the colon is used as the separator
between the device name and other values. The device name may also
contain colons. This commit ensures it is treated as a separator only
when there is a space before or after the colon.

Note that the device name is optional and may be omitted. There is no
escaping for problematic characters in the name. Use " : " as the
separator.

Fixes: https://github.com/util-linux/util-linux/issues/3723
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/script.c