]> 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, 22 May 2023 13:00:25 +0000 (15:00 +0200)
commitc0267687fd7b41b00d523d1985182d7eb574effd
tree338d38840799da359833567dabbbe73c3d63fdba
parent096800a0df9d98c9ab6f0fe0dbe221e0ea7d26d2
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