From 97aa1aab7b56ecec8f2bdb4f996428c4d82929d5 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 22 Sep 2011 14:46:56 -0700 Subject: [PATCH] mount.ceph: use ":/" instead of just ":" as ip/path delimiter This is tolerant of colons in the mount subdir. Signed-off-by: Sage Weil --- src/mount/mount.ceph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mount/mount.ceph.c b/src/mount/mount.ceph.c index 010337f860f57..d45935be89355 100755 --- a/src/mount/mount.ceph.c +++ b/src/mount/mount.ceph.c @@ -41,7 +41,7 @@ static char *mount_resolve_src(const char *orig_str) char *src; char *buf = strdup(orig_str); - mount_path = strrchr(buf, ':'); + mount_path = strstr(buf, ":/"); if (!mount_path) { printf("source mount path was not specified\n"); free(buf);