summaryrefslogtreecommitdiffstats
path: root/libmount/src/tab_parse.c
diff options
context:
space:
mode:
authorKarel Zak2012-03-02 13:29:39 +0100
committerKarel Zak2012-03-02 13:29:39 +0100
commitab8c6e056931440fcd432dc7977328a4d91aab92 (patch)
tree5eb38800a0788b1f649c1c58a39b42826acd8479 /libmount/src/tab_parse.c
parentlibmount: cosmetic changes around "none" (diff)
downloadkernel-qcow2-util-linux-ab8c6e056931440fcd432dc7977328a4d91aab92.tar.gz
kernel-qcow2-util-linux-ab8c6e056931440fcd432dc7977328a4d91aab92.tar.xz
kernel-qcow2-util-linux-ab8c6e056931440fcd432dc7977328a4d91aab92.zip
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 <kzak@redhat.com>
Diffstat (limited to 'libmount/src/tab_parse.c')
-rw-r--r--libmount/src/tab_parse.c2
1 files changed, 1 insertions, 1 deletions
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;
}