]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: fix options prepend/insert and merging
authorKarel Zak <kzak@redhat.com>
Mon, 22 May 2023 13:00:25 +0000 (15:00 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 5 Jun 2023 09:57:52 +0000 (11:57 +0200)
commit6fa034d0a99cc4e5a11f21ebf03b974134b734d0
tree42680d16b37a8b762640d75c02599113367061d7
parentf8c9ef62e401221f2afebe2d213347292baebd51
libmount: fix options prepend/insert and merging

 * the order of the new options should not be changed
   (for example prepend "a,b,c" to list with "d" has to generate "a,b,c,d", not "c,b,a,d")

 * make sure that  options map is defined when merging options

Fixes: https://github.com/util-linux/util-linux/issues/2238
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/optlist.c