]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: ignore redundant slashes
authorKarel Zak <kzak@redhat.com>
Mon, 8 Aug 2016 15:23:54 +0000 (17:23 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 8 Aug 2016 15:23:54 +0000 (17:23 +0200)
commitd4e89dea4e8e95cee0cede39dc77618a181b8d19
tree00c24b4795795930d6bc618ebb1e9d9b68819992
parentb7a245e27af6053c262a0e16438d4ab2ebb48016
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>
include/strutils.h
lib/strutils.c
libmount/src/cache.c
libmount/src/fs.c
tests/ts/misc/strtosize