fix compilation error on Cobalt Qube 1

git-svn: trunk@1738
remotes/push_mirror/metadata
Tomasz Kojm 20 years ago
parent 0fcf4d22cf
commit a4c1e5c323
  1. 4
      clamav-devel/ChangeLog
  2. 4
      clamav-devel/clamd/others.c

@ -1,3 +1,7 @@
Sun Oct 30 21:22:35 CET 2005 (tk)
---------------------------------
* clamd/others.c: fix compilation error on Cobalt Qube 1
Sun Oct 30 18:46:36 CET 2005 (tk)
---------------------------------
* libclamav/scanners.c: fix logic bug in cli_scandesc(). Patch by Andrey J.

@ -300,7 +300,7 @@ int writen(int fd, void *buff, unsigned int count)
/* Submitted by Richard Lyons <frob-clamav*webcentral.com.au> */
#if defined(HAVE_RECVMSG) && (defined(HAVE_ACCRIGHTS_IN_MSGHDR) || defined(HAVE_CONTROL_IN_MSGHDR)) && !defined(C_CYGWIN) && !defined(C_OS2)
#if defined(HAVE_RECVMSG) && (defined(HAVE_ACCRIGHTS_IN_MSGHDR) || defined(HAVE_CONTROL_IN_MSGHDR)) && !defined(C_CYGWIN) && !defined(C_OS2) && !defined(INCOMPLETE_CMSG)
int readsock(int sockfd, char *buf, size_t size)
{
@ -346,12 +346,10 @@ int readsock(int sockfd, char *buf, size_t size)
cmsg = CMSG_FIRSTHDR(&msg);
if (cmsg == NULL)
return -1;
#ifndef INCOMPLETE_CMSG
if (cmsg->cmsg_type != SCM_RIGHTS)
return -1;
if (cmsg->cmsg_len != CMSG_LEN(sizeof(fd)))
return -1;
#endif
fd = *(int *)CMSG_DATA(cmsg);
#endif
if (fd < 0)

Loading…
Cancel
Save