freebsd-ports/sysutils/cfengine3/files/patch-ag
Ying-Chieh Liao a26a168208 This patch fixes the following problems:
* cfengine deadlocking in the resolver due to being linked against libc_r
    * cfd issuing 'ioctl:  No such network device' whenever it is invoked.

change maintainer email
add more docs
Patches obtained from Michael Kyle <mike@rainc.com>

PR:		29649
Submitted by:	MAINTAINER
2001-08-17 14:20:09 +00:00

13 lines
474 B
Text

This fixes the problem with cfd not finding the correct interfaces.
--- src/misc.c.orig Wed Jan 24 07:28:01 2001
+++ src/misc.c Fri Aug 10 23:34:45 2001
@@ -284,7 +284,7 @@
list.ifc_len = sizeof(ifbuf);
list.ifc_req = ifbuf;
-if (ioctl(fd, SIOCGIFCONF, &list) == -1 || (list.ifc_len < (sizeof(struct ifreq))))
+if (ioctl(fd, OSIOCGIFCONF, &list) == -1 || (list.ifc_len < (sizeof(struct ifreq))))
{
CfLog(cferror,"Couldn't get interfaces","ioctl");
exit(1);