mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
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
5a0a9182fe
commit
08c7e8c879
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198254
@ -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