mirror of
https://github.com/ceph/ceph
synced 2025-01-20 18:21:57 +00:00
rgw: fix str_to_bool
This commit is contained in:
parent
a9633ce6c5
commit
d053f53fdd
@ -326,7 +326,7 @@ static inline int rgw_str_to_bool(const char *s, int def_val)
|
||||
|
||||
return (strcasecmp(s, "on") == 0 ||
|
||||
strcasecmp(s, "yes") == 0 ||
|
||||
strcasecmp(s, "1"));
|
||||
strcasecmp(s, "1") == 0);
|
||||
}
|
||||
|
||||
/** */
|
||||
|
Loading…
Reference in New Issue
Block a user