svn commit: r210243 - head/usr.sbin/tzsetup
Norikatsu Shigemura
nork at FreeBSD.org
Mon Jul 19 16:38:45 UTC 2010
Author: nork
Date: Mon Jul 19 16:38:45 2010
New Revision: 210243
URL: http://svn.freebsd.org/changeset/base/210243
Log:
Fix support for chrooted installs.
Approved by: imp (mentor)
Modified:
head/usr.sbin/tzsetup/tzsetup.c
Modified: head/usr.sbin/tzsetup/tzsetup.c
==============================================================================
--- head/usr.sbin/tzsetup/tzsetup.c Mon Jul 19 16:08:47 2010 (r210242)
+++ head/usr.sbin/tzsetup/tzsetup.c Mon Jul 19 16:38:45 2010 (r210243)
@@ -821,16 +821,16 @@ main(int argc, char **argv)
"or you don't know, please choose NO here!");
if (!DIALOG_UTC(title, prompt, 7, 72)) {
if (reallydoit)
- unlink(_PATH_WALL_CMOS_CLOCK);
+ unlink(path_wall_cmos_clock);
} else {
if (reallydoit) {
- fd = open(_PATH_WALL_CMOS_CLOCK,
+ fd = open(path_wall_cmos_clock,
O_WRONLY | O_CREAT | O_TRUNC,
S_IRUSR | S_IRGRP | S_IROTH);
if (fd < 0) {
end_dialog();
err(1, "create %s",
- _PATH_WALL_CMOS_CLOCK);
+ path_wall_cmos_clock);
}
close(fd);
}
More information about the svn-src-all
mailing list