Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 258382
Collapse All | Expand All

(-)ettercap-NG-0.7.3-orig/src/ec_log.c (-1 / +1 lines)
Lines 190-196 Link Here
190
      if (fd->cfd == NULL)
190
      if (fd->cfd == NULL)
191
         SEMIFATAL_ERROR("%s", gzerror(fd->cfd, &zerr));
191
         SEMIFATAL_ERROR("%s", gzerror(fd->cfd, &zerr));
192
   } else {
192
   } else {
193
      fd->fd = open(filename, O_CREAT | O_TRUNC | O_RDWR | O_BINARY);
193
      fd->fd = open(filename, O_CREAT | O_TRUNC | O_RDWR | O_BINARY, S_IRUSR | S_IWUSR);
194
      if (fd->fd == -1)
194
      if (fd->fd == -1)
195
         SEMIFATAL_ERROR("Can't create %s: %s", filename, strerror(errno));
195
         SEMIFATAL_ERROR("Can't create %s: %s", filename, strerror(errno));
196
   }
196
   }

Return to bug 258382