Searched refs:chroot_dir (Results 1 – 1 of 1) sorted by relevance
537 droproot(const char *username, const char *chroot_dir) in droproot() argument541 if (chroot_dir && !username) { in droproot()548 if (chroot_dir) { in droproot()549 if (chroot(chroot_dir) != 0 || chdir ("/") != 0) { in droproot()551 chroot_dir, pcap_strerror(errno)); in droproot()708 char *chroot_dir = NULL; in main() local1170 if (!chroot_dir) in main()1171 chroot_dir = WITH_CHROOT; in main()1473 if (username || chroot_dir) in main()1474 droproot(username, chroot_dir); in main()