Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
util-linux.4110
util-linux-libmount-double-slash.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File util-linux-libmount-double-slash.patch of Package util-linux.4110
From 41510d26ddd9a4c83f8589dded539e2985535dcf Mon Sep 17 00:00:00 2001 From: Søren Holm <sgh@sgh.dk> Date: Fri, 26 Sep 2014 18:35:11 +0200 Subject: [PATCH] libmount: don't return root if path contains // or ending / MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the path fx. is /foo/bar/ the initial stripoff will replace the last slash with \0 and return a pointer to that exact \0 character. The same thing will happen if the path contains // somewhere. Signed-off-by: Søren Holm <sgh@sgh.dk> --- libmount/src/tab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmount/src/tab.c b/libmount/src/tab.c index 011ba54..2b0a343 100644 --- a/libmount/src/tab.c +++ b/libmount/src/tab.c @@ -864,7 +864,7 @@ struct libmnt_fs *mnt_table_find_mountpoint(struct libmnt_table *tb, } p = stripoff_last_component(mnt); - if (!p || !*p) + if (!p) break; } while (mnt && *(mnt + 1) != '\0'); -- 2.4.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor