head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.4 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.2 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q2:1.3.0.60 pkgsrc-2012Q2-base:1.3 pkgsrc-2012Q1:1.3.0.58 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.3.0.56 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.54 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.52 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.50 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.48 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.46 pkgsrc-2010Q3-base:1.3 pkgsrc-2010Q2:1.3.0.44 pkgsrc-2010Q2-base:1.3 pkgsrc-2010Q1:1.3.0.42 pkgsrc-2010Q1-base:1.3 pkgsrc-2009Q4:1.3.0.40 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.38 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.36 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.34 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.32 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.30 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.28 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.26 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.24 pkgsrc-2008Q1:1.3.0.22 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.20 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.18 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.16 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.14 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.12 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.10 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.8 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.6 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.4 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.2 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.2.0.14 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.12 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.10 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.8 pkgsrc-2004Q3-base:1.2 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 comdex-fall-1999:1.1; locks; strict; comment @# @; 1.4 date 2012.09.26.16.52.38; author christos; state dead; branches; next 1.3; 1.3 date 2005.08.26.08.42.09; author abs; state Exp; branches; next 1.2; 1.2 date 2000.01.15.18.09.31; author christos; state dead; branches; next 1.1; 1.1 date 99.08.29.12.26.23; author kim; state Exp; branches; next ; desc @@ 1.4 log @update to latest freerdist-0.94: * use intmax_t instead of long long * Don't limit the size of the environment * Don't leak a directory file descriptor * ansify * dynamically allocate EARGS * use getaddrinfo @ text @$NetBSD: patch-af,v 1.3 2005/08/26 08:42:09 abs Exp $ --- src/filesys.c.orig 2005-08-26 09:30:21.000000000 +0100 +++ src/filesys.c @@@@ -452,12 +452,10 @@@@ int getfilesysinfo(file, freespace, free */ #if STATFS_TYPE == STATFS_SYSV r = statfs(mntpt, &statfsbuf, sizeof(statfs_t), 0); -#endif -#if STATFS_TYPE == STATFS_BSD || STATFS_TYPE == STATFS_44BSD - r = statfs(mntpt, &statfsbuf); -#endif -#if STATFS_TYPE == STATFS_OSF1 +#elif STATFS_TYPE == STATFS_OSF1 r = statfs(mntpt, &statfsbuf, sizeof(statfs_t)); +#else + r = statfs(mntpt, &statfsbuf); #endif if (r < 0) { @ 1.3 log @Update freerdist to 0.92nb2 Defining STATFS_SVR4 sets the .h to use statsvfs(), which is fine, but it probably helps if the .c file actually calls anything when STATFS_SVR4 is defined. Fixes freespace being reported as zero in NetBSD 3.x and later. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @replace rdist-6.1.4 with freerdist-0.91. 6.1.4 is just too buggy. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.1 1999/08/29 12:26:23 kim Exp $ d3 16 a18 4 --- src/message.c.orig Fri Jul 19 13:01:56 1996 +++ src/message.c Sun Aug 29 07:50:08 1999 @@@@ -467,10 +467,21 @@@@ (void) sprintf(tempfile, "%s/%s", cp, _RDIST_TMP); d20 1 a20 19 msgfac->mf_filename = tempfile; +#if defined(NETBSD) + { + int fd; + + if ((fd = mkstemp(msgfac->mf_filename)) < 0 || + (msgfac->mf_fptr = fdopen(fd, "w")) == NULL) + fatalerr("Cannot open notify file for writing: %s: %s.", + msgfac->mf_filename, SYSERR); + } +#else (void) mktemp(msgfac->mf_filename); if ((msgfac->mf_fptr = fopen(msgfac->mf_filename, "w"))==NULL) fatalerr("Cannot open notify file for writing: %s: %s.", msgfac->mf_filename, SYSERR); +#endif debugmsg(DM_MISC, "Created notify temp file '%s'", msgfac->mf_filename); } @ 1.1 log @FIX: sendmail is /usr/sbin/sendmail on NetBSD (now notify works). While fixing that, I broke out the huge multi-file patch-aa into separate patch files for each patched file in the distribution, and moved new files into ${FILESDIR} for easier maintenance. @ text @d1 1 a1 1 $NetBSD$ @