]> 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)
committernilfsuser5678 <189666860+nilfsuser5678@users.noreply.github.com>
Mon, 2 Dec 2024 13:57:35 +0000 (13:57 +0000)
commit2d680b72ac61644e4ba177e6569d8ca13580c248
treed5156d82a49f69eb7cfbb407474cf6700fb8bfb3
parentd2f7e308f4507dadc213e293771d627a0fd41f9c
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
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