diff options
author | Sage Weil <sage@newdream.net> | 2011-09-22 14:46:56 -0700 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-09-22 14:47:45 -0700 |
commit | 97aa1aab7b56ecec8f2bdb4f996428c4d82929d5 (patch) | |
tree | e999f4c6d14f0255b5173369035f65e2d6233974 /src/mount | |
parent | ac1a40d1742b27b5148f41b5346af78d525368c7 (diff) | |
download | ceph-97aa1aab7b56ecec8f2bdb4f996428c4d82929d5.tar.gz |
mount.ceph: use ":/" instead of just ":" as ip/path delimiter
This is tolerant of colons in the mount subdir.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'src/mount')
-rwxr-xr-x | src/mount/mount.ceph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mount/mount.ceph.c b/src/mount/mount.ceph.c index 010337f860f..d45935be893 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); |