From: | "Patrick Lauer (patrick)" <patrick@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/ettercap/files: ettercap-0.7.3-open_missing_mode.patch |
Date: | Sun, 01 Mar 2009 20:20:42 |
Message-Id: | E1Lds9R-0001jw-Bk@stork.gentoo.org |
1 | patrick 09/03/01 20:20:41 |
2 | |
3 | Added: ettercap-0.7.3-open_missing_mode.patch |
4 | Log: |
5 | Fix for gcc 4.3.3 / fortify_sources. Patch by Jonathan-Christofer Demay. |
6 | (Portage version: 2.2_rc23/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 net-analyzer/ettercap/files/ettercap-0.7.3-open_missing_mode.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/ettercap/files/ettercap-0.7.3-open_missing_mode.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/ettercap/files/ettercap-0.7.3-open_missing_mode.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: ettercap-0.7.3-open_missing_mode.patch |
15 | =================================================================== |
16 | diff -Naur ettercap-NG-0.7.3-orig/src/ec_log.c ettercap-NG-0.7.3-patch/src/ec_log.c |
17 | --- ettercap-NG-0.7.3-orig/src/ec_log.c 2004-09-30 16:01:45.000000000 +0000 |
18 | +++ ettercap-NG-0.7.3-patch/src/ec_log.c 2009-02-16 13:04:23.000000000 +0000 |
19 | @@ -190,7 +190,7 @@ |
20 | if (fd->cfd == NULL) |
21 | SEMIFATAL_ERROR("%s", gzerror(fd->cfd, &zerr)); |
22 | } else { |
23 | - fd->fd = open(filename, O_CREAT | O_TRUNC | O_RDWR | O_BINARY); |
24 | + fd->fd = open(filename, O_CREAT | O_TRUNC | O_RDWR | O_BINARY, S_IRUSR | S_IWUSR); |
25 | if (fd->fd == -1) |
26 | SEMIFATAL_ERROR("Can't create %s: %s", filename, strerror(errno)); |
27 | } |