summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2009-03-01 20:20:41 +0000
committerPatrick Lauer <patrick@gentoo.org>2009-03-01 20:20:41 +0000
commit83bfa71f87e57728f36e380931df6b1261e2147b (patch)
treefdd5c1108ae70a02b1ca90a80f2d4d4894c7ca29 /net-analyzer/ettercap/files
parentFix for gcc 4.3.3 / fortify_sources. Patch by Romain Perier. (diff)
downloadgentoo-2-83bfa71f87e57728f36e380931df6b1261e2147b.tar.gz
gentoo-2-83bfa71f87e57728f36e380931df6b1261e2147b.tar.bz2
gentoo-2-83bfa71f87e57728f36e380931df6b1261e2147b.zip
Fix for gcc 4.3.3 / fortify_sources. Patch by Jonathan-Christofer Demay.
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/ettercap/files')
-rw-r--r--net-analyzer/ettercap/files/ettercap-0.7.3-open_missing_mode.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/net-analyzer/ettercap/files/ettercap-0.7.3-open_missing_mode.patch b/net-analyzer/ettercap/files/ettercap-0.7.3-open_missing_mode.patch
new file mode 100644
index 000000000000..03837fc9a3e9
--- /dev/null
+++ b/net-analyzer/ettercap/files/ettercap-0.7.3-open_missing_mode.patch
@@ -0,0 +1,12 @@
+diff -Naur ettercap-NG-0.7.3-orig/src/ec_log.c ettercap-NG-0.7.3-patch/src/ec_log.c
+--- ettercap-NG-0.7.3-orig/src/ec_log.c 2004-09-30 16:01:45.000000000 +0000
++++ ettercap-NG-0.7.3-patch/src/ec_log.c 2009-02-16 13:04:23.000000000 +0000
+@@ -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, S_IRUSR | S_IWUSR);
+ if (fd->fd == -1)
+ SEMIFATAL_ERROR("Can't create %s: %s", filename, strerror(errno));
+ }