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