Donate Share

ettercap

Tracker: Bugs

5 open() needs a mode in ec_log.c - ID: 1776264
Last Update: Tracker Item Submitted ( limburgher )

If the Fedora maintainer, and we just upgraded glibc in rawhide.

New glibc is more strict, requires that a mode be specified with O_CREAT.

Patch, as currently implemented, which works:

--- src/ec_log.c 2007-08-17 07:46:06.000000000 -0500
+++ src/ec_log.c 2007-08-17 07:46:06.000000000 -0500
@@ -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,
0644);
if (fd->fd == -1)
SEMIFATAL_ERROR("Can't create %s: %s", filename,
strerror(errno));
}

Let me know if you put out a version which fixes this. Thanks!


Jonathan Ciesla ( limburgher ) - 2007-08-17 13:26

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.