If we're not logging history information, don't demand write access.

This commit is contained in:
Jordan K. Hubbard 1993-11-20 00:33:12 +00:00
parent d333677271
commit 44f6e41b43

View File

@ -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,