Searched refs:chroot_dir (Results 1 - 2 of 2) sorted by relevance

/freebsd-9.3-release/libexec/tftpd/
H A Dtftpd.c130 char *chroot_dir = NULL; local
176 chroot_dir = optarg;
209 else if (chroot_dir) {
213 if (ipchroot > 0 && chroot_dir == NULL) {
342 if (chroot_dir) {
356 asprintf(&tempchroot, "%s/%s", chroot_dir, hbuf);
361 chroot_dir = tempchroot;
368 if (chroot(chroot_dir)) {
370 chroot_dir, strerror(errno));
/freebsd-9.3-release/contrib/tcpdump/
H A Dtcpdump.c525 droproot(const char *username, const char *chroot_dir) argument
529 if (chroot_dir && !username) {
536 if (chroot_dir) {
537 if (chroot(chroot_dir) != 0 || chdir ("/") != 0) {
539 chroot_dir, pcap_strerror(errno));
696 char *chroot_dir = NULL; local
1137 if (!chroot_dir)
1138 chroot_dir = WITH_CHROOT;
1432 if (username || chroot_dir)
1433 droproot(username, chroot_dir);
[all...]

Completed in 94 milliseconds