From d4e89dea4e8e95cee0cede39dc77618a181b8d19 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 8 Aug 2016 17:23:54 +0200 Subject: 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 Signed-off-by: Karel Zak --- include/strutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/strutils.h') 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. -- cgit v1.2.3-55-g7522