blob: d81af4ca776c0647e17a04f01e529148c6c8d597 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
commit 7ec07e4815965dd31b85e56ac823249bfb9afc28
Author: Peter Volkov <pva@gentoo.org>
Date: Fri Apr 2 09:33:30 2010 +0400
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 1c1b63a..eb3e5e8 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
|