From b2a6e759997aaf033da5ee1b1f1cbc69ab375745 Mon Sep 17 00:00:00 2001 From: tholo Date: Sat, 14 Sep 1996 21:23:36 +0000 Subject: [PATCH] Disable logging to CVSROOT/history if we are running on a read-only file system --- gnu/usr.bin/cvs/src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/usr.bin/cvs/src/main.c b/gnu/usr.bin/cvs/src/main.c index 0150771262c..bf9c83c1b38 100644 --- a/gnu/usr.bin/cvs/src/main.c +++ b/gnu/usr.bin/cvs/src/main.c @@ -334,8 +334,10 @@ main (argc, argv) } if (getenv (CVSREAD_ENV) != NULL) cvswrite = FALSE; - if (getenv (CVSREADONLYFS_ENV)) + if (getenv (CVSREADONLYFS_ENV)) { readonlyfs = TRUE; + logoff = TRUE; + } if ((cp = getenv (CVSUMASK_ENV)) != NULL) { /* FIXME: Should be accepting symbolic as well as numeric mask. */ -- 2.20.1