]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: check for availability of mount_setattr
authorThomas Weißschuh <thomas@t-8ch.de>
Sat, 20 May 2023 04:38:20 +0000 (06:38 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 5 Jun 2023 09:57:07 +0000 (11:57 +0200)
commitf8c9ef62e401221f2afebe2d213347292baebd51
tree18de0817dd07581f8f1abf7c0c5cf45227167a3d
parent9422991c921471ccc66b28599a4c42d608c9af2c
libmount: check for availability of mount_setattr

If mount_setattr is not available but needed fall back to the legacy
mount API.

Fixes #2247

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
libmount/src/hook_mount.c
tests/expected/mount/fallback-mount_setattr [new file with mode: 0644]
tests/ts/mount/fallback