=================================================================== RCS file: /cvs/openafs/src/afs/LINUX/osi_vnodeops.c,v retrieving revision 1.81.2.62 retrieving revision 1.81.2.63 diff -u -r1.81.2.62 -r1.81.2.63 --- openafs/src/afs/LINUX/osi_vnodeops.c 2008/04/02 13:11:42 1.81.2.62 +++ openafs/src/afs/LINUX/osi_vnodeops.c 2008/04/02 18:27:13 1.81.2.63 @@ -570,7 +570,7 @@ AFS_GLOCK(); - if (fp->f_flags | O_RDONLY) { /* readers dont flush */ + if ((fp->f_flags & O_ACCMODE) == O_RDONLY) { /* readers dont flush */ AFS_GUNLOCK(); return 0; }