]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: read utab always when read mtab from /proc
authorKarel Zak <kzak@redhat.com>
Thu, 12 Feb 2015 12:14:52 +0000 (13:14 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 12 Feb 2015 12:21:08 +0000 (13:21 +0100)
commit60d29f827b94097fb718dcb02fad6ccb571bdb2b
tree8cd9066bf122a56b9a58ff7e243d61e5fde058e9
parent9c277ede65c45c1e5bc00a10c965bfaea8e2929d
libmount: read utab always when read mtab from /proc

Now libmount reads utab only when mtab filename is no explicitly
specified, but for example:

 mnt_table_parse_mtab(tb, "/proc/self/mountinfo");

ignores utab because filename points to regular file. This is mistake,
we wnat to read utab always when we read mount table from kernel.

Reported-by: Martin Pitt <martin.pitt@ubuntu.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/mountP.h
libmount/src/tab.c
libmount/src/tab_parse.c