]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: exec mount helpers with posixly correct argument order
authornilfsuser5678 <189666860+nilfsuser5678@users.noreply.github.com>
Fri, 29 Nov 2024 17:27:12 +0000 (17:27 +0000)
committerKarel Zak <kzak@redhat.com>
Tue, 10 Dec 2024 09:57:01 +0000 (10:57 +0100)
commit474f2599a3786d4359b8f5abe7416cdf6321c002
treedbf96f7ddec587a7b29da224297aac8cbd0da257
parentd6d1bec40182cc7a95a37201ba633a4de5c36fe4
libmount: exec mount helpers with posixly correct argument order

This improves compatibility with non-gnu userspaces.

On systems where the libc provides posix getopt instead of gnu getopt,
mount helpers which use getopt to parse arguments will not parse
options which appear after non-option arguments. This patch ensures
mount/unmount work as expected in this situation.

mount: fix expected argument order for mount helpers in tests
(cherry picked from commit 2d680b72ac61644e4ba177e6569d8ca13580c248)
libmount/src/context_mount.c
libmount/src/context_umount.c
tests/expected/mount/special-basic
tests/expected/mount/special-multi-types
tests/expected/mount/special-options
tests/expected/mount/special-user
tests/expected/mount/special-username