Accept paths with : in them

This commit is contained in:
Kareem Zidane 2019-01-23 14:56:25 -05:00
parent fa287aeef7
commit cd794a6985

View File

@ -4310,7 +4310,7 @@ static int set_bucket(const char* arg)
return -1;
}
bucket = strtok(bucket_name, ":");
char* pmount_prefix = strtok(NULL, ":");
char* pmount_prefix = strtok(NULL, "");
if(pmount_prefix){
if(0 == strlen(pmount_prefix) || '/' != pmount_prefix[0]){
S3FS_PRN_EXIT("path(%s) must be prefix \"/\".", pmount_prefix);