add a more helpful error message for when there are multiple entries for the same bucket in the passwd file

This commit is contained in:
Tristen Horton 2018-03-13 14:37:34 -07:00
parent 0f503ced25
commit 0863672e27
No known key found for this signature in database
GPG Key ID: 550399341864CE9C

View File

@ -3925,7 +3925,7 @@ static int parse_passwd_file(bucketkvmap_t& resmap)
secret = trim(iter->substr(first_pos + 1, string::npos));
}
if(resmap.end() != resmap.find(bucket)){
S3FS_PRN_EXIT("same bucket(%s) passwd setting found in passwd file.", ("" == bucket ? "default" : bucket.c_str()));
S3FS_PRN_EXIT("there are mutliple entries for the same bucket(%s) in the passwd file.", ("" == bucket ? "default" : bucket.c_str()));
return -1;
}
kv.clear();