main: Disallow setting seat name and disabling input

pull/142/head
Andri Yngvason 2022-05-30 18:35:04 +00:00
parent d1057f481f
commit 099bdb8e17
1 changed files with 5 additions and 0 deletions

View File

@ -880,6 +880,11 @@ int main(int argc, char* argv[])
if (n_args >= 2)
port = atoi(argv[optind + 1]);
if (seat_name && disable_input) {
log_error("seat and disable-input are conflicting options\n");
return 1;
}
errno = 0;
int cfg_rc = cfg_load(&self.cfg, cfg_file);
if (cfg_rc != 0 && (cfg_file || errno != ENOENT)) {