summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-09-14 21:23:37 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-09-14 21:23:37 +0000
commit9fa32e4a0de3f01fefc84289fa4f912316b143ed (patch)
treeeb9176b6ad7d81c1b7d0cb984bb0289eae197fae /gnu
parente36ef175fd39ad150f5abcb087436c7a7fcb447b (diff)
Disable logging to CVSROOT/history if we are running on a read-only file
system
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/cvs/src/main.c4
1 files changed, 3 insertions, 1 deletions
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. */