10000 Fix an arangod configuration bug (#11632) (#11640) · arangodb/arangodb@c92cbf8 · GitHub
[go: up one dir, main page]

Skip to content

Commit c92cbf8

Browse files
authored
Fix an arangod configuration bug (#11632) (#11640)
1 parent bc9486c commit c92cbf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ApplicationFeatures/ConfigFeature.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void ConfigFeature::loadConfigFile(std::shared_ptr<ProgramOptions> options,
111111

112112
IniFileParser parser(options.get());
113113

114-
if (FileUtils::exists(local)) {
114+
if (FileUtils::exists(local) && FileUtils::isRegularFile(local)) {
115115
LOG_TOPIC(DEBUG, Logger::CONFIG) << "loading override '" << local << "'";
116116

117117
if (!parser.parse(local, true)) {
@@ -201,7 +201,7 @@ void ConfigFeature::loadConfigFile(std::shared_ptr<ProgramOptions> options,
201201

202202
LOG_TOPIC(TRACE, Logger::CONFIG) << "checking override '" << local << "'";
203203

204-
if (FileUtils::exists(local)) {
204+
if (FileUtils::exists(local) && FileUtils::isRegularFile(local)) {
205205
LOG_TOPIC(DEBUG, Logger::CONFIG) << "loading override '" << local << "'";
206206

207207
if (!parser.parse(local, true)) {

0 commit comments

Comments
 (0)
0