From 62078136d1eac45fe412a9a3da03960c0f9860e8 Mon Sep 17 00:00:00 2001 From: Jeff Riegel Date: Tue, 5 Jun 2001 15:11:01 +0000 Subject: [PATCH] usermode-cachemgr-open-mode-checking-fix-20010605 default to read mode when opening --- src/afs/UKERNEL/afs_usrops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/afs/UKERNEL/afs_usrops.c b/src/afs/UKERNEL/afs_usrops.c index 2d93e7c88..0c1e9eb2a 100644 --- 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); -- 2.39.5