Merge branch 'bug475' into 'main'
ConfigurationSources: Allow config files to be world-readable. Closes #475 See merge request tpo/core/arti!528
This commit is contained in:
commit
4b0459d204
|
@ -159,7 +159,12 @@ where
|
|||
for (path, must_read) in files {
|
||||
let required = must_read == &MustRead::MustRead;
|
||||
|
||||
match mistrust.verifier().require_file().check(&path) {
|
||||
match mistrust
|
||||
.verifier()
|
||||
.permit_readable()
|
||||
.require_file()
|
||||
.check(&path)
|
||||
{
|
||||
Ok(()) => {}
|
||||
Err(fs_mistrust::Error::NotFound(_)) if !required => {}
|
||||
Err(e) => return Err(ConfigError::Foreign(e.into())),
|
||||
|
|
Loading…
Reference in New Issue