2 # Make the "ext" method more intelligent; allow specification of the
3 # "rsh" command using ext=<command>. Extended to recognise "extssh" the
4 # same way as "ext=ssh"
6 # Original patch by Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>,
7 # extension by Steve McIntyre <steve@einval.com>. Bugs #165432 and #276328
8 diff -Nru3 ./cvs-1.12.13/src/root.c ../build-tree.new/cvs-1.12.13/src/root.c
9 --- ./cvs-1.12.13/src/root.c 2006-05-05 23:35:40.000000000 +0800
10 +++ ../build-tree.new/cvs-1.12.13/src/root.c 2006-05-05 23:34:12.000000000 +0800
12 newroot->method = gserver_method;
13 else if (!strcasecmp (method, "server"))
14 newroot->method = server_method;
15 + else if (strncmp (method, "ext=", 4) == 0)
17 + const char *rsh = method + 4;
18 + setenv ("CVS_RSH", rsh, 1); /* This is a hack, but simplifies */
19 + newroot->method = ext_method;
21 + else if (strncmp (method, "extssh", 6) == 0)
23 + const char *rsh = method + 3;
24 + setenv ("CVS_RSH", rsh, 1); /* This is a hack, but simplifies */
25 + newroot->method = ext_method;
27 else if (!strcasecmp (method, "ext"))
28 newroot->method = ext_method;
29 else if (!strcasecmp (method, "fork"))