From 664f9100835e99a639b233054de9ed57d1e12311 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Sun, 4 Nov 2018 10:46:13 -0800 Subject: [PATCH] Correctly compare list_object_max_keys Previously this did not allow an argument. Fixes #843. References #793. --- src/s3fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s3fs.cpp b/src/s3fs.cpp index 56b3dda..9758ef9 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -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(s3fs_strtoofft(strchr(arg, '=') + sizeof(char))); if(max_keys < 1000){ S3FS_PRN_EXIT("argument should be over 1000: list_object_max_keys");