summaryrefslogtreecommitdiff
path: root/net/rdist6/patches
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2005-08-26 08:42:09 +0000
committerabs <abs@pkgsrc.org>2005-08-26 08:42:09 +0000
commit4e16ce597dc793f02a9249d56affe6e58d3bb3bc (patch)
tree4868f42ce0189573fc0bbfb615c5c9166f12c184 /net/rdist6/patches
parent4d68d81842e3dd334a64faead7231278192d7e73 (diff)
downloadpkgsrc-4e16ce597dc793f02a9249d56affe6e58d3bb3bc.tar.gz
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.
Diffstat (limited to 'net/rdist6/patches')
-rw-r--r--net/rdist6/patches/patch-af20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/rdist6/patches/patch-af b/net/rdist6/patches/patch-af
new file mode 100644
index 00000000000..b2d76ee1cae
--- /dev/null
+++ b/net/rdist6/patches/patch-af
@@ -0,0 +1,20 @@
+$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) {