From dcc15ce5afc7a5f86f65f9084a780f9509e15613 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 25 Mar 2013 13:56:31 +0100 Subject: libmount: add mnt_table_find_mountpoint() This is more robust implementation of mnt_get_mountpoint() that does not ignore bind mountpoints (mount --bind /mnt /mnt) as it does not depend on st_dev numbers. Signed-off-by: Karel Zak --- libmount/src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmount/src/utils.c') diff --git a/libmount/src/utils.c b/libmount/src/utils.c index 1d4fd0e4b..5453789e3 100644 --- a/libmount/src/utils.c +++ b/libmount/src/utils.c @@ -94,7 +94,7 @@ static int fstype_cmp(const void *v1, const void *v2) /* returns basename and keeps dirname in the @path, if @path is "/" (root) * then returns empty string */ -static char *stripoff_last_component(char *path) +char *stripoff_last_component(char *path) { char *p = path ? strrchr(path, '/') : NULL; -- cgit v1.2.3-55-g7522