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

/freebsd-10-stable/libexec/tftpd/
H A Dtftpd.c129 char *chroot_dir = NULL; local
175 chroot_dir = optarg;
208 else if (chroot_dir) {
212 if (ipchroot > 0 && chroot_dir == NULL) {
343 if (chroot_dir) {
357 asprintf(&tempchroot, "%s/%s", chroot_dir, hbuf);
362 chroot_dir = tempchroot;
369 if (chroot(chroot_dir)) {
371 chroot_dir, strerror(errno));
/freebsd-10-stable/contrib/tcpdump/
H A Dtcpdump.c537 droproot(const char *username, const char *chroot_dir) argument
541 if (chroot_dir && !username) {
548 if (chroot_dir) {
549 if (chroot(chroot_dir) != 0 || chdir ("/") != 0) {
551 chroot_dir, pcap_strerror(errno));
778 char *chroot_dir = NULL; local
1224 if (!chroot_dir)
1225 chroot_dir = WITH_CHROOT;
1547 if (username || chroot_dir)
1548 droproot(username, chroot_dir);
[all...]

Completed in 73 milliseconds