Switch to cvs-1.12.13
[dragonfly.git] / gnu / usr.bin / cvs / cvs / root.c.patch
1 $DragonFly: src/gnu/usr.bin/cvs/cvs/Attic/root.c.patch,v 1.2 2005/12/07 01:16:30 corecode Exp $
2 Index: src/root.c
3 ===================================================================
4 RCS file: /space/cvs/dragonfly/src/contrib/cvs-1.12/src/root.c,v
5 retrieving revision 1.1.1.1
6 diff -u -r1.1.1.1 root.c
7 --- src/root.c  7 Dec 2005 00:15:13 -0000       1.1.1.1
8 +++ src/root.c  7 Dec 2005 01:04:02 -0000
9 @@ -635,10 +635,14 @@
10      newroot->isremote = (newroot->method != local_method);
11  
12  #if defined (CLIENT_SUPPORT) || defined (SERVER_SUPPORT)
13 -    if (readonlyfs && newroot->isremote)
14 -       error (1, 0,
15 +    if (readonlyfs && newroot->isremote) {
16 +       /* downgrade readonlyfs settings via environment */
17 +       if (readonlyfs < 0)
18 +           error (1, 0,
19  "Read-only repository feature unavailable with remote roots (cvsroot = %s)",
20                cvsroot_copy);
21 +       readonlyfs = 0;
22 +    }
23  
24      if ((newroot->method != local_method)
25         && (newroot->method != fork_method)