diff options
author | wiz <wiz> | 2005-03-21 18:08:31 +0000 |
---|---|---|
committer | wiz <wiz> | 2005-03-21 18:08:31 +0000 |
commit | 179d822446d20c6a576554ca6bc02fe1afc4a71c (patch) | |
tree | baf267b3a853aea615248479bbfbc891f5e3a2aa /security/cfs/patches | |
parent | ead043e97440b8792214343166ea02b03c755c73 (diff) | |
download | pkgsrc-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-ah | 14 |
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 */ |