summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-29 22:57:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-29 22:57:04 +0000
commit0b76c30b56471d2de3bb8493b288a92682f7b9fe (patch)
tree1414e855c00332566f64bc5795bf47eab454c720
parentef293f91c760d0fc0e52d8036c8f7bf310994138 (diff)
if CVSREADONLYFS, access to the history file is irrelevant
-rw-r--r--gnu/usr.bin/cvs/src/main.c2
-rw-r--r--gnu/usr.bin/cvs/src/server.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/cvs/src/main.c b/gnu/usr.bin/cvs/src/main.c
index c15ac0a5fc1..9cefce0cc84 100644
--- a/gnu/usr.bin/cvs/src/main.c
+++ b/gnu/usr.bin/cvs/src/main.c
@@ -537,7 +537,7 @@ error 0 %s: no such user\n", user);
}
(void) strcat (path, "/");
(void) strcat (path, CVSROOTADM_HISTORY);
- if (isfile (path) && access (path, R_OK | W_OK))
+ if (readonlyfs == 0 && isfile (path) && access (path, R_OK | W_OK))
{
save_errno = errno;
error (0, 0,
diff --git a/gnu/usr.bin/cvs/src/server.c b/gnu/usr.bin/cvs/src/server.c
index 54aabb72130..6bef7d855ad 100644
--- a/gnu/usr.bin/cvs/src/server.c
+++ b/gnu/usr.bin/cvs/src/server.c
@@ -291,7 +291,7 @@ serve_root (arg)
}
(void) strcat (path, "/");
(void) strcat (path, CVSROOTADM_HISTORY);
- if (isfile (path) && access (path, R_OK | W_OK))
+ if (readonlyfs == 0 && isfile (path) && access (path, R_OK | W_OK))
{
save_errno = errno;
pending_error_text = malloc (80 + strlen (path));