]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: fix mount by pattern
authorKarel Zak <kzak@redhat.com>
Tue, 24 Apr 2012 09:52:04 +0000 (11:52 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 24 Apr 2012 09:52:04 +0000 (11:52 +0200)
commitae5afe071f5bc34a6fc0ddb4c0db98baf485262d
tree0fba332ce8059c78d338735b5864de2ab52048ce
parent14e8be8ab3db2d782484af9363d6adc351b95a0b
libmount: fix mount by pattern

  mount /foo /bar

without entry in /etc/fstab the mount command tries all filesystems
from /{etc,proc}/filesystems. We should NOT call mount(2) more then
once if the syscall returns for example ENOENT, acceptable is only
EINVAL.

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