]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: don't call mount.<type> helper with usernames
authorKarel Zak <kzak@redhat.com>
Mon, 22 May 2023 15:26:55 +0000 (17:26 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 22 May 2023 15:26:55 +0000 (17:26 +0200)
commitfe0b1e793c9017edba72768e2e0b4c769c204604
tree069a578fd53631919d16b022b1ef52779cf82e18
parente2d6f5e30e34fe54c9a54eb6f1d9d01b6723068a
libmount: don't call mount.<type> helper with usernames

This is v2.39 regression. The "user" mount option is internally
converted to "user=<name>", but this should not be exported to
the mount helpers.

The mount helper accepts the <name> only if specified in mount options
(cifs uses user=). The real username as generated by libmount is not
relevant in this case.

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context_mount.c