]> 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 11:29:42 +0000 (13:29 +0200)
commita96b486d17775bb7f79d834ee22769dfea0ba6cd
tree47ae4af89edfd1d7e4e769ca482e4ab31653ce5c
parent640e93f48040e72b06f038159c54ffa3bbc86e0c
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