From: Peter Volkov Date: Fri, 2 Apr 2010 05:33:30 +0000 (+0400) Subject: Respect --without-chroot correctly X-Git-Tag: tcpdump-4.1.1~4 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/a6e6091ef16cd3038d2364d4ada82ab51cbd9951 Respect --without-chroot correctly ./configure --without-chroot will configure tcpdump with "no" as the value of chroot directory and cause tcpdump to fail with: tcpdump: Couldn't chroot/chdir to 'no': No such file or directory This patch makes ./configure to avoid chroot directory when called with --without-chroot. --- diff --git a/configure.in b/configure.in index 1c1b63a7..eb3e5e8b 100644 --- a/configure.in +++ b/configure.in @@ -159,7 +159,7 @@ fi AC_ARG_WITH(chroot, [ --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY]) AC_MSG_CHECKING([whether to chroot]) -if test ! -z "$with_chroot" ; then +if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then AC_DEFINE_UNQUOTED(WITH_CHROOT, "$withval") AC_MSG_RESULT(to \"$withval\") else