]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: don't use /proc/mounts fallback if filename specified
authorKarel Zak <kzak@redhat.com>
Tue, 29 Oct 2019 11:59:08 +0000 (12:59 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 29 Oct 2019 11:59:08 +0000 (12:59 +0100)
commit05842a92d891ddc883bf37280937fccde7eaac31
treeacea49bf5d2a144d5a43e94e8b1602b226f0d5e6
parentbdc3cc65abb9dde8c5df2462fbb17be86e6da0fa
libmount: don't use /proc/mounts fallback if filename specified

The current solution is to use /proc/mounts if previous attempt to
open /proc/self/mountinfo failed. The fallback should not be used when
mount table path is explicitly specified by application. The default
is NULL, only in this case libmount should be try to be smart.

Reported-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/tab_parse.c