summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorapb <apb@pkgsrc.org>2008-02-16 22:03:49 +0000
committerapb <apb@pkgsrc.org>2008-02-16 22:03:49 +0000
commit4a80804eee73382a2d83e53b1a2dd01c9360e20b (patch)
treeeb188eb575be48f756a19d72a2c9813a0461c083 /security
parentab373e2b7e3758c87675ba4a2c55d72255079ded (diff)
downloadpkgsrc-4a80804eee73382a2d83e53b1a2dd01c9360e20b.tar.gz
Deal with fourth arg to mount(2) in NetBSD. It appeared between
4.99.23 and 4.99.24.
Diffstat (limited to 'security')
-rw-r--r--security/sfs/distinfo3
-rw-r--r--security/sfs/patches/patch-bv16
2 files changed, 18 insertions, 1 deletions
diff --git a/security/sfs/distinfo b/security/sfs/distinfo
index 634c83fc5ba..43a33a8014a 100644
--- a/security/sfs/distinfo
+++ b/security/sfs/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2007/05/13 16:13:10 agc Exp $
+$NetBSD: distinfo,v 1.5 2008/02/16 22:03:49 apb Exp $
SHA1 (sfs-0.7.2.tar.gz) = 3619afc9b785e4aa41f7cdf202c5b233a6b5fe08
RMD160 (sfs-0.7.2.tar.gz) = 30cd5e21c4f63292ef0f5671720f6036d08e5ff1
@@ -50,3 +50,4 @@ SHA1 (patch-br) = 411b894e043d105402ab7d0622fc843703457639
SHA1 (patch-bs) = a426787d1b2a74a92a091046c1c9fdf7696a87f4
SHA1 (patch-bt) = 41b1359d716493aadd861818c9a377247191ecec
SHA1 (patch-bu) = 42924f5d59315b99d3d397eedde977366ec0ad96
+SHA1 (patch-bv) = d77635ff12f3b6324fc76fbad7ad8a314c2cb12e
diff --git a/security/sfs/patches/patch-bv b/security/sfs/patches/patch-bv
new file mode 100644
index 00000000000..8c4e3d56b9f
--- /dev/null
+++ b/security/sfs/patches/patch-bv
@@ -0,0 +1,16 @@
+$NetBSD: patch-bv,v 1.1 2008/02/16 22:03:49 apb Exp $
+
+--- nfsconf.h.orig 2002-09-19 06:15:18.000000000 +0200
++++ nfsconf.h
+@@ -262,6 +262,11 @@ struct nfs3_fh {
+ #define SYS_MOUNT(hostname, type, dir, mntflags, args) \
+ vfsmount (type, dir, mntflags, args)
+
++#elif defined(__NetBSD__) && __NetBSD_Prereq__(4,99,24)
++ /* The fifth arg appeared in NetBSD between 4.99.23 and 4.99.24 */
++#define SYS_MOUNT(hostname, type, dir, mntflags, args) \
++ mount (type, dir, mntflags, args, sizeof(*(args)))
++
+ #else /* normal mount syscall */
+ #define SYS_MOUNT(hostname, type, dir, mntflags, args) \
+ mount (type, dir, mntflags, (char *) (args))