head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.42 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.40 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.38 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.36 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.34 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.32 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.30 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.28 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.26 pkgsrc-2008Q2-base:1.4 pkgsrc-2008Q1:1.4.0.24 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.22 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.20 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.18 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.16 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.14 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.12 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.10 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.8 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.6 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.4 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.2 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.3.0.6 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.4 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.2 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.2.0.6 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.4 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.2 pkgsrc-2003Q4-base:1.2 buildlink2-base:1.2 netbsd-1-5-PATCH001:1.1 netbsd-1-5-RELEASE:1.1 netbsd-1-4-PATCH003:1.1; locks; strict; comment @# @; 1.4 date 2005.04.22.19.03.04; author wiz; state dead; branches; next 1.3; 1.3 date 2004.09.16.18.08.36; author minskim; state Exp; branches; next 1.2; 1.2 date 2001.06.04.16.18.22; author abs; state dead; branches; next 1.1; 1.1 date 2000.10.02.16.43.45; author abs; state Exp; branches; next ; desc @@ 1.4 log @Remove cfengine -- obsoleted by cfengine2. @ text @$NetBSD: patch-ag,v 1.3 2004/09/16 18:08:36 minskim Exp $ --- src/df.c.orig 2000-09-10 12:16:00.000000000 -0500 +++ src/df.c @@@@ -51,7 +51,8 @@@@ char *file; enum cfsizes type; { -#if defined SOLARIS || defined OSF || defined UNIXWARE +#if defined SOLARIS || defined OSF || defined UNIXWARE || \ + (defined(__NetBSD__) && __NetBSD_Version__ >= 200040000) struct statvfs buf; #elif defined ULTRIX struct fs_data buf; @@@@ -73,7 +74,8 @@@@ enum cfsizes type; CfLog(cferror,OUTPUT,""); return cfinfinity; } -#elif defined SOLARIS || defined OSF || defined UNIXWARE +#elif defined SOLARIS || defined OSF || defined UNIXWARE || \ + (defined(__NetBSD__) && __NetBSD_Version__ >= 200040000) if (statvfs (file, &buf) != 0) { sprintf(OUTPUT,"Couldn't get filesystem info for %s\n",file); @ 1.3 log @Use statvfs on NetBSD>=2.0D. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Update cfengine to 1.6.3 * Expansion of $(dollar) broken in 1.6.0 - fixed * Locking problem in cfd fixed. Problem causing access denied while re-reading config files. MAXTRIES increased for high volume services, was causing premature apoptosis. dest= could not refer to a filename with spaces, fixed. * Made recipient variables in client.c long instead of size_t in rstat, for 64 bits. With %ld in scanf. * Cfengine 1.6.0-1.6.3 introduces filters into processes and files. * 1.6.3 change from Berkeley DB2 to DB3 - not backward compatible!!! Update Berkeley db with cd build_unix ../dist/configure make; make install ln -s /usr/local/BerkeleyDB.3.2 /usr/local/BerkeleyDB 2000-06-13 David Masterson * 1.6.0.a2: re-released to Mark after stupid mistakes. * src/Makefile.am (noinst_HEADERS): add cfparse.h * Makefile.am (EXTRA_DIST): add acconfig.h 2000-06-12 David Masterson * 1.6.0.a2: released to Mark * General: Attempted to convert to reincorporate all my Automake stuff into the release. 2000-06-12 Mark Burgess * 1.6.0-alpha1: released * General: Rewrite of DCE code by Transarc/IBM. Add elsedefine= tag as complement to define=. CompressCommand action=compress in files, tidy, compress=true for compressing files on the fly. Bug in copy with size= fixed. Was ignored if file didn't exist. Modules: in addition to setting classes, can return lines =ENVVAR=value which sets cfengine environment variables. This allows modules to set variables which can be inherited directly by scripts. 2000-05-11 David Masterson * contrib/Makefile.am (pkgdata_SCRIPTS): change cfemacs.el to cfengine.el in keeping with internal documentation. Also renamed the file as well. 2000-05-08 David Masterson * Release: V1.6 released to Mark for verification. * Everything: Many things have been changed and reorganized for the shift to automake generated Makefiles. See the end of the NEWS file for more information. 2000-04-24 David Masterson * ChangeLog: Created and initialized with old VERSION.DIFF ***************** Minor Version 5 ******************** KNOWN BUGS: linux, when making directories, ownership can perms can be wrong. 1.5.4 Added security message in checksum=md5 for cfengine if new files appear Bug in class evaluation with multiple embedded groups fixed Bug in file transfer could hang a server in special circumstances. Bug in secure recursive copy (access denied incorrectly). Type change, size is off_t in cfstat struct Multiple define bug in copy: could cause endless loop Thread counting error fixed in cfd Required/disk suspicious warnings now cause classes to be defined Resolver could delete substring lines Extra measures against Denial of Service attacks on cfd, only one instance of a host-IP may be connected at one time. 1) Multiple connections from the same host are refused by default (before any recv()) 2) A DenyConnectionsFrom list will prevent named IP adresses from connecting (before any recv) or a general AllowConnectionsFrom mask... 3) If the thread table is full for more than five requests, cfd commits suicide (apoptosis) to avoid resource usage by spamming. The control variable "DenyConnectionsFrom = ( ip1 ip2 ... )" allows a list of numerical IP masks to be specified, which cfd will deny connections from. This can be used to prevent hanging connection attacks from malicous hosts and other Denial of Service attacks. e.g. cfd.conf control: AllowConnectionsFrom ( 128.39.89 ) DenyConnectionsFrom = ( 128.39.89.4 ) This is in addition to tcp wrapper stuff, but the TCP wrapper code cannot protect against denial of service attacks. typecheck=false in copy switches off error messages on type mismatch. @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.1 2000/10/02 16:43:45 abs Exp $ d3 4 a6 3 --- src/misc.c.orig Tue Sep 14 09:46:53 1999 +++ src/misc.c @@@@ -652,3 +652,41 @@@@ d8 17 a24 40 AddClassToHeap(CanonifyName(VDOMAIN)); } + +/*********************************************************************/ + +AddNetworkClass(netmask) + +const char *netmask; + +{ +struct in_addr ip, + nm; +char *sp, + nmbuf[maxvarsize], + ipbuf[maxvarsize]; + + /* + * Has to differentiate between cases such as: + * 192.168.101.1/24 -> 192.168.101 and + * 192.168.101.1/26 -> 192.168.101.0 + * We still have the, um... 'interesting' Class C default Network Class + * set by GetNameInfo() + */ + + /* This is also a convenient method to ensure valid dotted quad */ +if ( (nm.s_addr = inet_addr(netmask)) != -1 && + (ip.s_addr = inet_addr(VIPADDRESS)) != -1 ) + { + ip.s_addr &= nm.s_addr; /* Will not work with IPv6 */ + strcpy(ipbuf,inet_ntoa(ip)); + + strcpy(nmbuf,inet_ntoa(nm)); + while( (sp = strrchr(nmbuf,'.')) && strcmp(sp,".0") == 0 ) + { + *sp = 0; + *strrchr(ipbuf,'.') = 0; + } + AddClassToHeap(CanonifyName(ipbuf)); + } +} @ 1.1 log @Update to 1.5.3nb3: Always pass %s to syslog to avoid potential format string exploit. (Action based on alert by Pekka Savola on Bugtraq) @ text @d1 1 a1 1 $NetBSD$ @