]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r289269:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 27 Oct 2015 00:37:19 +0000 (00:37 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 27 Oct 2015 00:37:19 +0000 (00:37 +0000)
commit3ede60845a3874a8777252fc793deede3259e0e9
tree757c8d5239c19707b5cefeff05b15421e1a94b33
parent156fd9f327e5a8f0c192e24dd7651ea70962e556
MFC r289269:

Use chroot(2) instead of using prefixes for files.

Previously, the code prefixes the chroot path to actual file paths to
simulate the effect.  This, however, will not work for tzset(3) which
expects the current system have a working set of timezone data files,
and that is not always the case.

This changeset simplifies the handling of paths and use an actual
chroot(2) call to implement the effect.

PR: bin/197313

git-svn-id: svn://svn.freebsd.org/base/stable/10@290027 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/tzsetup/tzsetup.c