diff --git a/src/s3fs.cpp b/src/s3fs.cpp index a4e047f..5d58c4e 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -4222,6 +4222,10 @@ static int set_bucket(const char* arg) { char *bucket_name = (char*)arg; if(strstr(arg, ":")){ + if(strstr(arg, "://")){ + S3FS_PRN_EXIT("bucket name and path(\"%s\") is wrong, it must be \"bucket[:/path]\".", arg); + return -1; + } bucket = strtok(bucket_name, ":"); char* pmount_prefix = strtok(NULL, ":"); if(pmount_prefix){