From: tholo Date: Sat, 14 Sep 1996 21:23:36 +0000 (+0000) Subject: Disable logging to CVSROOT/history if we are running on a read-only file X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b2a6e759997aaf033da5ee1b1f1cbc69ab375745;p=openbsd Disable logging to CVSROOT/history if we are running on a read-only file system --- 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. */