Merge pull request #926 from kzidane/master

Accept paths with : in them
This commit is contained in:
Takeshi Nakatani 2019-01-27 15:23:24 +09:00 committed by GitHub
commit fd4d23f8f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4306,7 +4306,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);