Lines Matching defs:newroot

379     cvsroot_t *newroot;
382 newroot = xmalloc(sizeof(cvsroot_t));
384 newroot->original = NULL;
385 newroot->directory = NULL;
386 newroot->method = null_method;
387 newroot->isremote = false;
389 newroot->username = NULL;
390 newroot->password = NULL;
391 newroot->hostname = NULL;
392 newroot->cvs_rsh = NULL;
393 newroot->cvs_server = NULL;
394 newroot->port = 0;
395 newroot->proxy_hostname = NULL;
396 newroot->proxy_port = 0;
397 newroot->redirect = true; /* Advertise Redirect support */
400 return newroot;
472 cvsroot_t *newroot; /* the new root to be returned */
500 newroot = new_cvsroot_t();
503 newroot->original = xstrdup (root_in);
543 newroot->method = local_method;
545 newroot->method = pserver_method;
547 newroot->method = kserver_method;
549 newroot->method = gserver_method;
551 newroot->method = server_method;
553 newroot->method = ext_method;
555 newroot->method = fork_method;
578 newroot->proxy_hostname = xstrdup (q);
594 if ((newroot->proxy_port = atoi (q)) <= 0)
602 if (newroot->method == ext_method)
603 newroot->cvs_rsh = xstrdup (q);
608 if (newroot->method == ext_method
609 || newroot->method == fork_method)
610 newroot->cvs_server = xstrdup (q);
613 readBool ("CVSROOT", "Redirect", q, &newroot->redirect);
627 newroot->method = ((*cvsroot_copy != '/' && strchr (cvsroot_copy, '/'))
637 newroot->isremote = (newroot->method != local_method);
640 if (readonlyfs && newroot->isremote)
645 if ((newroot->method != local_method)
646 && (newroot->method != fork_method)
673 newroot->password = xstrdup (++q);
674 /* Don't check for *newroot->password == '\0' since
677 * (newroot->password == NULL means to use the
687 newroot->username = xstrdup (cvsroot_copy);
714 if ((newroot->port = atoi (p)) <= 0)
730 newroot->hostname = xstrdup (cvsroot_copy);
746 newroot->directory = xstrdup (cvsroot_copy);
753 if (newroot->username && ! newroot->hostname)
767 switch (newroot->method)
771 if (newroot->username || newroot->hostname)
783 if (!ISABSOLUTE (newroot->directory))
786 newroot->directory);
804 if (newroot->username || newroot->hostname)
810 newroot->hostname = xstrdup("server"); /* for error messages */
811 if (!ISABSOLUTE (newroot->directory))
814 newroot->directory);
847 if (no_password && newroot->password)
853 if (no_proxy && (newroot->proxy_hostname || newroot->proxy_port))
861 if (!newroot->proxy_hostname && newroot->proxy_port)
867 if (check_hostname && !newroot->hostname)
873 if (no_port && newroot->port)
882 if (*newroot->directory == '\0')
893 node->key = xstrdup (newroot->original);
894 node->data = newroot;
896 return newroot;
900 free_cvsroot_t (newroot);
988 cvsroot_t *newroot = new_cvsroot_t();
990 newroot->original = xstrdup(dir);
991 newroot->method = local_method;
992 newroot->directory = xstrdup(dir);
997 Sanitize_Repository_Name (newroot->directory);
1005 walklist (root_allow, get_local_root_dir, &newroot->directory);
1008 return newroot;