Derecho-Project / derecho

The main code repository for the Derecho project.
BSD 3-Clause "New" or "Revised" License
186 stars 47 forks source link

Silently fall back to default configuration if 'derecho.cfg' uses Windows-style CRLF #224

Open songweijia opened 2 years ago

songweijia commented 2 years ago

@etremel Edward found an issue that if derecho.cfg uses Windows-style CRLF, the configuration loading logic will fall back to the default configuration, making it very hard to find why a derecho service won't start. We should convert the CRLFs in the configuration to UNIX style LF before loading.