]> git.pld-linux.org Git - packages/cvs.git/blame - cvs-debian-normalize-roots.patch
rel 20; rediff patches
[packages/cvs.git] / cvs-debian-normalize-roots.patch
CommitLineData
3a862a5e
AM
1# Apply patch from 120042, which only tries to parse pserver, gserver
2# and kserver methods when doing cvs login. (closes: #120042).
3#
4# Patch from Horms <horms@vergenet.net>
5diff -ruN cvs-1.12.13-old/src/login.c cvs-1.12.13/src/login.c
6--- cvs-1.12.13-old/src/login.c 2006-02-26 22:10:42.000000000 +0800
7+++ cvs-1.12.13/src/login.c 2006-02-26 22:25:14.000000000 +0800
8@@ -200,11 +200,21 @@
9 return NULL;
10 }
11 *p = ' ';
12- tmp_root_canonical = normalize_cvsroot (tmp_root);
13- if (strcmp (cvsroot_canonical, tmp_root_canonical) == 0)
14- password = p + 1;
15-
16- free (tmp_root_canonical);
17+ switch (tmp_root->method)
18+ {
19+ case gserver_method:
20+ case pserver_method:
21+#ifdef HAVE_KERBEROS
22+ case kserver_method:
23+#endif /* HAVE_KERBEROS */
24+ tmp_root_canonical = normalize_cvsroot (tmp_root);
25+ if (strcmp (cvsroot_canonical, tmp_root_canonical) == 0)
26+ password = p + 1;
27+ free (tmp_root_canonical);
28+ break;
29+ default:
30+ break;
31+ }
32 }
33
34 return password;
This page took 0.077553 seconds and 4 git commands to generate.