Skip to content

Commit

Permalink
Fix read requirements on init (ydb-platform#6930)
Browse files Browse the repository at this point in the history
  • Loading branch information
Enjection authored Jul 22, 2024
1 parent 48bdda4 commit d6b792e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ydb/core/config/init/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ class TDefaultProtoConfigFileProvider
static bool IsFileReadable(const fs::path& p) {
std::error_code ec; // For noexcept overload usage.
auto perms = fs::status(p, ec).permissions();
if ((perms & fs::perms::owner_read) != fs::perms::none &&
(perms & fs::perms::group_read) != fs::perms::none &&
if ((perms & fs::perms::owner_read) != fs::perms::none ||
(perms & fs::perms::group_read) != fs::perms::none ||
(perms & fs::perms::others_read) != fs::perms::none )
{
return true;
Expand Down

0 comments on commit d6b792e

Please sign in to comment.