]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: always ignore user=<name>
authorKarel Zak <kzak@redhat.com>
Mon, 19 Jun 2023 11:29:42 +0000 (13:29 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 19 Jun 2023 12:28:37 +0000 (14:28 +0200)
commitd8a4e680f30720ffb9d91218c2bb8ce2ae84fd97
treed645ae982f1bcbd1489bae3df5bd97ae9bdf6475
parentf5765e238b688a3787ffe78a5a4cbe74833e1a99
libmount: always ignore user=<name>

The library (on mount) cares about "user", but has to ignore
"user=name". It works as expected, but only for non-root users. We
need to ignore it also root to be compatible with /sbin/mount.cifs
where some people still use "user=" (rather than "username=").

References: fe0b1e793c9017edba72768e2e0b4c769c204604
Addresses: https://github.com/util-linux/util-linux/issues/2315
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context_mount.c
sys-utils/mount.8.adoc