When tzsetup is run as non-root and the "CMOS clock question on
UTC" is answered as No, it would abort without properly ending the dialog session. MFC after: 1 week
This commit is contained in:
parent
22d120ca09
commit
d1e8b30b35
@ -709,9 +709,11 @@ main(int argc, char **argv)
|
||||
fd = open(_PATH_WALL_CMOS_CLOCK,
|
||||
O_WRONLY | O_CREAT | O_TRUNC,
|
||||
S_IRUSR | S_IRGRP | S_IROTH);
|
||||
if (fd < 0)
|
||||
if (fd < 0) {
|
||||
end_dialog();
|
||||
err(1, "create %s",
|
||||
_PATH_WALL_CMOS_CLOCK);
|
||||
}
|
||||
close(fd);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user