cvs-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cvs-cvs] Changes to ccvs/src/root.c


From: Larry Jones
Subject: [Cvs-cvs] Changes to ccvs/src/root.c
Date: Fri, 02 Sep 2005 17:51:17 -0400

Index: ccvs/src/root.c
diff -u ccvs/src/root.c:1.115 ccvs/src/root.c:1.116
--- ccvs/src/root.c:1.115       Wed Aug 31 16:51:02 2005
+++ ccvs/src/root.c     Fri Sep  2 21:51:09 2005
@@ -112,11 +112,7 @@
        goto out;
     }
 
-    if (
-#ifdef CLIENT_SUPPORT
-        !ret->isremote &&
-#endif
-        !isdir (ret->directory))
+    if (!ret->isremote && !isdir (ret->directory))
     {
        error (0, 0, "in directory %s:", xupdate_dir);
        error (0, 0,
@@ -385,6 +381,7 @@
 
     newroot->original = NULL;
     newroot->method = null_method;
+    newroot->isremote = 0;
 #ifdef CLIENT_SUPPORT
     newroot->username = NULL;
     newroot->password = NULL;
@@ -395,7 +392,6 @@
     newroot->directory = NULL;
     newroot->proxy_hostname = NULL;
     newroot->proxy_port = 0;
-    newroot->isremote = 0;
     newroot->redirect = true;  /* Advertise Redirect support */
 #endif /* CLIENT_SUPPORT */
 
@@ -630,9 +626,9 @@
      * method of this root.
      */
 
-#if defined(CLIENT_SUPPORT) || defined (SERVER_SUPPORT)
     newroot->isremote = (newroot->method != local_method);
 
+#if defined (CLIENT_SUPPORT) || defined (SERVER_SUPPORT)
     if (readonlyfs && newroot->isremote)
        error (1, 0,
 "Read-only repository feature unavailable with remote roots (cvsroot = %s)",




reply via email to

[Prev in Thread] Current Thread [Next in Thread]