Correctly compare list_object_max_keys

Previously this did not allow an argument.  Fixes #843.
References #793.
This commit is contained in:
Andrew Gaul 2018-11-04 10:46:13 -08:00
parent e8d76a6f58
commit 664f910083

View File

@ -4617,7 +4617,7 @@ static int my_fuse_opt_proc(void* data, const char* arg, int key, struct fuse_ar
S3fsCurl::SetReadwriteTimeout(rwtimeout);
return 0;
}
if(0 == strcmp(arg, "list_object_max_keys")){
if(0 == STR2NCMP(arg, "list_object_max_keys=")){
int max_keys = static_cast<int>(s3fs_strtoofft(strchr(arg, '=') + sizeof(char)));
if(max_keys < 1000){
S3FS_PRN_EXIT("argument should be over 1000: list_object_max_keys");