Searched refs:chroot_dir (Results 1 – 2 of 2) sorted by relevance
52 static const char *chroot_dir; variable198 chroot_dir = optarg; in os_parse_cmd_args()227 if (chroot_dir) { in change_root()228 if (chroot(chroot_dir) < 0) { in change_root()
374 droproot(const char *username, const char *chroot_dir) in droproot() argument378 if (chroot_dir && !username) { in droproot()385 if (chroot_dir) { in droproot()386 if (chroot(chroot_dir) != 0 || chdir ("/") != 0) { in droproot()388 chroot_dir, pcap_strerror(errno)); in droproot()465 char *chroot_dir = NULL; in main() local820 if (!chroot_dir) in main()821 chroot_dir = WITH_CHROOT; in main()1005 if (username || chroot_dir) in main()1006 droproot(username, chroot_dir); in main()