From: deraadt Date: Mon, 29 Jan 1996 22:57:02 +0000 (+0000) Subject: if CVSREADONLYFS, access to the history file is irrelevant X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=740c81268900cb2ecd4e873c7771dd1713b5e897;p=openbsd if CVSREADONLYFS, access to the history file is irrelevant --- 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));