]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: safe_stat: support relative filenames
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 19 Apr 2023 19:48:00 +0000 (21:48 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 19 Apr 2023 20:45:00 +0000 (22:45 +0200)
commit98f24109257958ef045370a0d811e02e366fd016
tree0d2e41c7b78cd4b1a10517760237a9ebea2f1e86
parentc00d9e002bc53534895ade9dc9d1cdd9b71ac9a3
libmount: safe_stat: support relative filenames

By using AT_CWFD the call to statx() can also handle relative filenames.
Without this safe_stat() which is called on the fstab, source, target...

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
libmount/src/utils.c
tests/ts/mount/fstab-all