diff options
author | Karel Zak | 2016-08-08 17:23:54 +0200 |
---|---|---|
committer | Karel Zak | 2016-08-08 17:23:54 +0200 |
commit | d4e89dea4e8e95cee0cede39dc77618a181b8d19 (patch) | |
tree | 00c24b4795795930d6bc618ebb1e9d9b68819992 /include/strutils.h | |
parent | uuidd: remove unnecessary pidpile path variable (diff) | |
download | kernel-qcow2-util-linux-d4e89dea4e8e95cee0cede39dc77618a181b8d19.tar.gz kernel-qcow2-util-linux-d4e89dea4e8e95cee0cede39dc77618a181b8d19.tar.xz kernel-qcow2-util-linux-d4e89dea4e8e95cee0cede39dc77618a181b8d19.zip |
libmount: ignore redundant slashes
///aaa/bbb and /aaa/bbb/ are the same paths. This is important
especially with NFS where number of slashes are not the same in
the /proc/self/mountinfo and fstab or utab. The regular URI is
euler://tmp
but /proc contains
euler:/tmp
Reported-by: Ales Novak <alnovak@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/strutils.h')
-rw-r--r-- | include/strutils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/strutils.h b/include/strutils.h index f303450f5..52c28b77b 100644 --- a/include/strutils.h +++ b/include/strutils.h @@ -110,7 +110,7 @@ extern int string_to_bitmask(const char *list, long (*name2flag)(const char *, size_t)); extern int parse_range(const char *str, int *lower, int *upper, int def); -extern int streq_except_trailing_slash(const char *s1, const char *s2); +extern int streq_paths(const char *a, const char *b); /* * Match string beginning. |