mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-18 02:05:13 +00:00
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:
parent
0f503ced25
commit
0863672e27
@ -3925,7 +3925,7 @@ static int parse_passwd_file(bucketkvmap_t& resmap)
|
|||||||
secret = trim(iter->substr(first_pos + 1, string::npos));
|
secret = trim(iter->substr(first_pos + 1, string::npos));
|
||||||
}
|
}
|
||||||
if(resmap.end() != resmap.find(bucket)){
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
kv.clear();
|
kv.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user