From 740c81268900cb2ecd4e873c7771dd1713b5e897 Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 29 Jan 1996 22:57:02 +0000 Subject: [PATCH] if CVSREADONLYFS, access to the history file is irrelevant --- gnu/usr.bin/cvs/src/main.c | 2 +- gnu/usr.bin/cvs/src/server.c | 2 +- 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)); -- 2.20.1