1 |
pva 10/04/02 06:02:17 |
2 |
|
3 |
Added: tcpdump-4.1.0-without-chroot.patch |
4 |
Log: |
5 |
Version bump, bug #312337, thank Richard Hartmann for report. Fixes inability to run tcpdump if built with USE=-chroot, bug 281936, thank Travis Schack for report. Tests are broken in the release. |
6 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 net-analyzer/tcpdump/files/tcpdump-4.1.0-without-chroot.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/tcpdump/files/tcpdump-4.1.0-without-chroot.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/tcpdump/files/tcpdump-4.1.0-without-chroot.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: tcpdump-4.1.0-without-chroot.patch |
15 |
=================================================================== |
16 |
commit 7ec07e4815965dd31b85e56ac823249bfb9afc28 |
17 |
Author: Peter Volkov <pva@g.o> |
18 |
Date: Fri Apr 2 09:33:30 2010 +0400 |
19 |
|
20 |
Respect --without-chroot correctly |
21 |
|
22 |
./configure --without-chroot will configure tcpdump with "no" as the |
23 |
value of chroot directory and cause tcpdump to fail with: |
24 |
|
25 |
tcpdump: Couldn't chroot/chdir to 'no': No such file or directory |
26 |
|
27 |
This patch makes ./configure to avoid chroot directory when called with |
28 |
--without-chroot. |
29 |
|
30 |
diff --git a/configure.in b/configure.in |
31 |
index 1c1b63a..eb3e5e8 100644 |
32 |
--- a/configure.in |
33 |
+++ b/configure.in |
34 |
@@ -159,7 +159,7 @@ fi |
35 |
|
36 |
AC_ARG_WITH(chroot, [ --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY]) |
37 |
AC_MSG_CHECKING([whether to chroot]) |
38 |
-if test ! -z "$with_chroot" ; then |
39 |
+if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then |
40 |
AC_DEFINE_UNQUOTED(WITH_CHROOT, "$withval") |
41 |
AC_MSG_RESULT(to \"$withval\") |
42 |
else |