svn commit: r210243 - head/usr.sbin/tzsetup

[ Available lists | Index of svn-src-all | Month of Jul 2010 | Week of 19 Jul 2010 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Norikatsu Shigemura <nork@FreeBSD.org>
Date
19 Jul 2010 16:38:45
Subject
svn commit: r210243 - head/usr.sbin/tzsetup
Message-ID
201007191638.o6JGcjFs021520@svn.freebsd.org


[ Hide this part ]
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);
}


Elapsed time: 0.068 seconds