summaryrefslogtreecommitdiff
path: root/security/cfs/patches
diff options
context:
space:
mode:
authorwiz <wiz>2005-03-21 18:08:31 +0000
committerwiz <wiz>2005-03-21 18:08:31 +0000
commit179d822446d20c6a576554ca6bc02fe1afc4a71c (patch)
treebaf267b3a853aea615248479bbfbc891f5e3a2aa /security/cfs/patches
parentead043e97440b8792214343166ea02b03c755c73 (diff)
downloadpkgsrc-179d822446d20c6a576554ca6bc02fe1afc4a71c.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/cfs/patches')
-rw-r--r--security/cfs/patches/patch-ah14
1 files changed, 14 insertions, 0 deletions
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 */