Don't fail when config doesn't exist

seat-management
Andri Yngvason 2020-01-29 19:45:04 +00:00
parent ce6be3e4d8
commit cbbd97018d
1 changed files with 2 additions and 2 deletions

View File

@ -632,7 +632,7 @@ int main(int argc, char* argv[])
enum frame_capture_backend_type fcbackend = FRAME_CAPTURE_BACKEND_NONE;
const char* seat_name = NULL;
static const char* shortopts = "Cc:o:k:s:h";
static const char* shortopts = "C:c:o:k:s:h";
static const struct option longopts[] = {
{ "config", required_argument, NULL, 'C' },
@ -688,7 +688,7 @@ int main(int argc, char* argv[])
errno = 0;
int cfg_rc = cfg_load(&self.cfg, cfg_file);
if (cfg_rc != 0 && (cfg_file || errno != EEXIST)) {
if (cfg_rc != 0 && (cfg_file || errno != ENOENT)) {
if (cfg_rc > 0) {
log_error("Failed to load config. Error on line %d\n",
cfg_rc);