File 010-open-needs-mode.diff of Package Ettercap-NG
--- ettercap-NG-0.7.3/src/ec_log.c.ori 2008-06-02 10:26:17.000000000 +0200
+++ ettercap-NG-0.7.3/src/ec_log.c 2008-06-02 10:26:28.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));
}