diff options
author | Karel Zak | 2012-03-02 13:29:39 +0100 |
---|---|---|
committer | Karel Zak | 2012-03-02 13:29:39 +0100 |
commit | ab8c6e056931440fcd432dc7977328a4d91aab92 (patch) | |
tree | 5eb38800a0788b1f649c1c58a39b42826acd8479 /sys-utils/mount.c | |
parent | libmount: cosmetic changes around "none" (diff) | |
download | kernel-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 'sys-utils/mount.c')
-rw-r--r-- | sys-utils/mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/mount.c b/sys-utils/mount.c index 8f5dcdbd6..8c94052e5 100644 --- a/sys-utils/mount.c +++ b/sys-utils/mount.c @@ -423,7 +423,7 @@ try_readonly: const char *s = mnt_fs_get_srcpath(fs), *t = mnt_fs_get_target(fs); - if (t && s && streq_except_trailing_slash(s, src)) + if (t && s && mnt_fs_streq_strpath(fs, src)) fprintf(stderr, _( " %s is already mounted on %s\n"), s, t); } |