diff options
author | jkh <jkh@FreeBSD.org> | 1993-11-20 00:33:12 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1993-11-20 00:33:12 +0000 |
commit | a5ee536189d58b120f58f08e17a3662fc33446db (patch) | |
tree | 04ac2022d96aeaa3b8994ec8bef172c83f5a0f9f /gnu/usr.bin/cvs | |
parent | 94bb597cccd46fc99bfe21ff07458a5b8f518495 (diff) | |
download | FreeBSD-src-a5ee536189d58b120f58f08e17a3662fc33446db.zip FreeBSD-src-a5ee536189d58b120f58f08e17a3662fc33446db.tar.gz |
If we're not logging history information, don't demand write access.
Diffstat (limited to 'gnu/usr.bin/cvs')
-rw-r--r-- | gnu/usr.bin/cvs/cvs/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/cvs/cvs/main.c b/gnu/usr.bin/cvs/cvs/main.c index ce10eb8..03f4a2c 100644 --- a/gnu/usr.bin/cvs/cvs/main.c +++ b/gnu/usr.bin/cvs/cvs/main.c @@ -316,7 +316,7 @@ main (argc, argv) } (void) strcat (path, "/"); (void) strcat (path, CVSROOTADM_HISTORY); - if (isfile (path) && access (path, R_OK | W_OK)) + if (isfile (path) && access (path, R_OK | (logoff ? 0 : W_OK))) { save_errno = errno; error (0, 0, |