summaryrefslogtreecommitdiff
path: root/extra/ettercap/ettercap-NG-0.7.3_dns_support_on_x86_64.patch
blob: ed455a878bf883477ece3dc7387094b9e0356539 (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
28
29
30
31
32
33
34
35
36
37
38
39
--- a/configure	2011-08-06 12:50:26.000000000 +0200
+++ b/configure	2011-08-06 13:01:56.000000000 +0200
@@ -15732,7 +15732,7 @@
 if ${ac_cv_search_dn_expand+:} false; then :
 
 else
-  ac_cv_search_dn_expand=no
+  ac_cv_search_dn_expand='-lresolv'
 fi
 rm conftest.$ac_ext
 LIBS=$ac_func_search_save_LIBS
@@ -15790,14 +15790,14 @@
  ac_ec_dns=yes
 
 else
-   if false; then
+if true; then
   HAVE_DN_EXPAND_TRUE=
   HAVE_DN_EXPAND_FALSE='#'
 else
   HAVE_DN_EXPAND_TRUE='#'
   HAVE_DN_EXPAND_FALSE=
 fi
- ac_ec_dns=no
+ ac_ec_dns=yes
 fi
 
 
--- a/src/ec_log.c	2004-09-30 18:01:45.000000000 +0200
+++ b/src/ec_log.c	2011-08-06 13:04:30.000000000 +0200
@@ -190,7 +190,7 @@
       if (fd->cfd == NULL)
          SEMIFATAL_ERROR("%s", gzerror(fd->cfd, &zerr));
    } else {
-      fd->fd = open(filename, O_CREAT | O_TRUNC | O_RDWR | O_BINARY);
+      fd->fd = open(filename, O_CREAT | O_TRUNC | O_RDWR | O_BINARY, 0666);
       if (fd->fd == -1)
          SEMIFATAL_ERROR("Can't create %s: %s", filename, strerror(errno));
    }