summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-03-21 18:08:31 +0000
committerwiz <wiz@pkgsrc.org>2005-03-21 18:08:31 +0000
commitddb31685dc4c9edfcd44584a3241d2e5be8d5ee0 (patch)
treebaf267b3a853aea615248479bbfbc891f5e3a2aa /security
parent61508b0d4b86b5283f021d947af3d7ac2b4c07e5 (diff)
downloadpkgsrc-ddb31685dc4c9edfcd44584a3241d2e5be8d5ee0.tar.gz
Do not open files opened for reading in RW mode. Helps in using
cfs over coda. From Greg Troxel in PR 28479. PKGREVISION++
Diffstat (limited to 'security')
-rw-r--r--security/cfs/Makefile4
-rw-r--r--security/cfs/distinfo3
-rw-r--r--security/cfs/patches/patch-ah14
3 files changed, 18 insertions, 3 deletions
diff --git a/security/cfs/Makefile b/security/cfs/Makefile
index c3e6bd203f5..2e4a76e7e62 100644
--- a/security/cfs/Makefile
+++ b/security/cfs/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.22 2004/12/28 02:47:48 reed Exp $
+# $NetBSD: Makefile,v 1.23 2005/03/21 18:08:31 wiz Exp $
DISTNAME= cfs-1.4.1
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= security
MASTER_SITES= http://www.crypto.com/software/
diff --git a/security/cfs/distinfo b/security/cfs/distinfo
index 54928b4bce8..13064111ac8 100644
--- a/security/cfs/distinfo
+++ b/security/cfs/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2005/02/24 13:10:05 agc Exp $
+$NetBSD: distinfo,v 1.9 2005/03/21 18:08:31 wiz Exp $
SHA1 (cfs-1.4.1.tar.gz) = be3f73b233149477b739456498c71b120d5f2fb5
RMD160 (cfs-1.4.1.tar.gz) = 0ced92fe9773c6ce6b6706e26de9e17e710e7e46
@@ -10,3 +10,4 @@ SHA1 (patch-ad) = 2ed5967d59d8f91948b2dd9ed4b18c5073d63615
SHA1 (patch-ae) = 68b440cda27353d1035bae3002a83d8131087a24
SHA1 (patch-af) = 19bbedcf0c37356dab747087c64617608ff91838
SHA1 (patch-ag) = b9563e2bbade9008d044b9b869822013317f118d
+SHA1 (patch-ah) = 6426888cf462fcd4c0245cb32ae78b7520aaf2d5
diff --git a/security/cfs/patches/patch-ah b/security/cfs/patches/patch-ah
new file mode 100644
index 00000000000..d43bd232816
--- /dev/null
+++ b/security/cfs/patches/patch-ah
@@ -0,0 +1,14 @@
+$NetBSD: patch-ah,v 1.1 2005/03/21 18:08:31 wiz Exp $
+
+--- cfs_fh.c.orig 2004-11-30 11:19:25.000000000 -0500
++++ cfs_fh.c
+@@ -547,7 +547,9 @@ fhtofd(f,mode)
+ openfd=NULL;
+ }
+
++#if 0
+ if (mode==0) { mode=CFS_WRITE; }
++#endif
+ /* Phil Karn's hack for R/O file systems */
+ if ((fd=open(f->name,mode,0))<0 && errno == EROFS) {
+ mode = CFS_READ; /* Force read and try again */