diff options
author | nork <nork@FreeBSD.org> | 2010-07-19 16:38:45 +0000 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2010-07-19 16:38:45 +0000 |
commit | 0634eb567cd68b982e92336bbeaa5b229aafceda (patch) | |
tree | 376522ef83f416df90fb757ecc35783a011b8a25 /usr.sbin/tzsetup | |
parent | 2ad116091dc124fd9398b91d1cfbb9ed3e446fd5 (diff) | |
download | FreeBSD-src-0634eb567cd68b982e92336bbeaa5b229aafceda.zip FreeBSD-src-0634eb567cd68b982e92336bbeaa5b229aafceda.tar.gz |
Fix support for chrooted installs.
Approved by: imp (mentor)
Diffstat (limited to 'usr.sbin/tzsetup')
-rw-r--r-- | usr.sbin/tzsetup/tzsetup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tzsetup/tzsetup.c b/usr.sbin/tzsetup/tzsetup.c index eec55d3..f2eeb59 100644 --- a/usr.sbin/tzsetup/tzsetup.c +++ b/usr.sbin/tzsetup/tzsetup.c @@ -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); } |