From: Amos Jeffries Date: Sat, 31 Jul 2010 14:28:46 +0000 (-0600) Subject: Author: Matthias Pitzl X-Git-Tag: SQUID_3_0_STABLE26~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b16752791f1c26973ad6341d5764a22d60a4ca66;p=thirdparty%2Fsquid.git Author: Matthias Pitzl Bug 2991: Wrong parameters to fcntl() in commSetCloseOnExec() --- diff --git a/src/comm.cc b/src/comm.cc index 241c92389f..bb4970face 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1801,8 +1801,8 @@ commSetCloseOnExec(int fd) { int flags; int dummy = 0; - if ((flags = fcntl(fd, F_GETFL, dummy)) < 0) { - debugs(50, 0, "FD " << fd << ": fcntl F_GETFL: " << xstrerror()); + if ((flags = fcntl(fd, F_GETFD, dummy)) < 0) { + debugs(50, 0, "FD " << fd << ": fcntl F_GETFD: " << xstrerror()); return; }