git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2b82dde
)
usermode-cachemgr-open-mode-checking-fix-20010605
author
Jeff Riegel
<riegel@almaden.ibm.com>
Tue, 5 Jun 2001 15:11:01 +0000 (15:11 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Tue, 5 Jun 2001 15:11:01 +0000 (15:11 +0000)
default to read mode when opening
src/afs/UKERNEL/afs_usrops.c
patch
|
blob
|
history
diff --git
a/src/afs/UKERNEL/afs_usrops.c
b/src/afs/UKERNEL/afs_usrops.c
index
2d93e7c
..
0c1e9eb
100644
(file)
--- a/
src/afs/UKERNEL/afs_usrops.c
+++ b/
src/afs/UKERNEL/afs_usrops.c
@@
-2678,6
+2678,7
@@
int uafs_open_r(
if (flags & (O_WRONLY|O_RDWR)) {
fileMode |= VWRITE;
}
+ if (!fileMode) fileMode = VREAD; /* since O_RDONLY is 0 */
code = afs_access(fileP, fileMode, u.u_cred);
if (code != 0) {
VN_RELE(fileP);