mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-11 07:10:58 +00:00
Merge pull request #733 from phxvyper/enhance/dupe-bucket-error
More useful error message for dupe entries in passwd file
This commit is contained in:
commit
b3c376afbe
@ -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