From ab8c6e056931440fcd432dc7977328a4d91aab92 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 2 Mar 2012 13:29:39 +0100 Subject: libmount: add mnt_fs_streq_srcpath() We have to be careful with "none" or another dummy sources for pseudo filesystems. These strings should be canonicalized or compared as a paths. The function is not exported by library API. Signed-off-by: Karel Zak --- libmount/src/tab_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmount/src/tab_parse.c') diff --git a/libmount/src/tab_parse.c b/libmount/src/tab_parse.c index 5bc55ae43..4d581c31e 100644 --- a/libmount/src/tab_parse.c +++ b/libmount/src/tab_parse.c @@ -741,7 +741,7 @@ static struct libmnt_fs *mnt_table_merge_user_fs(struct libmnt_table *tb, struct */ if (s && t && r && strcmp(t, target) == 0 && - streq_except_trailing_slash(s, src) && + mnt_fs_streq_srcpath(fs, src) && strcmp(r, root) == 0) break; } -- cgit v1.2.3-55-g7522