Merge lp:~rhansen/ubuntu/vivid/cvsps/bug1413084 into lp:ubuntu/vivid/cvsps

Proposed by Richard Hansen
Status: Approved
Approved by: Brian Murray
Approved revision: 10
Proposed branch: lp:~rhansen/ubuntu/vivid/cvsps/bug1413084
Merge into: lp:ubuntu/vivid/cvsps
Diff against target: 55 lines (+35/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/06-discard-extra-version-lines.patch (+27/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~rhansen/ubuntu/vivid/cvsps/bug1413084
Reviewer Review Type Date Requested Status
Brian Murray Approve
Review via email: mp+249389@code.launchpad.net

Description of the change

Bug fix for #1413084

To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) wrote :

The correct format for bug numbers is LP: #1413084, notice the missing #. I've fixed this though and uploaded the change. Thanks for working on this.

review: Approve

Unmerged revisions

10. By Richard Hansen

Discard extra "M" response lines when reading server version

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-10-01 20:57:26 +0000
3+++ debian/changelog 2015-02-11 19:36:57 +0000
4@@ -1,3 +1,10 @@
5+cvsps (2.1-6ubuntu1) vivid; urgency=medium
6+
7+ * Discard extra "M" response lines when reading the server's
8+ version. (LP: 1413084)
9+
10+ -- Richard Hansen <ubuntu-a7x@scientician.org> Tue, 20 Jan 2015 23:29:12 -0500
11+
12 cvsps (2.1-6build1) quantal; urgency=low
13
14 * Rebuild for new armel compiler default of ARMv5t.
15
16=== added file 'debian/patches/06-discard-extra-version-lines.patch'
17--- debian/patches/06-discard-extra-version-lines.patch 1970-01-01 00:00:00 +0000
18+++ debian/patches/06-discard-extra-version-lines.patch 2015-02-11 19:36:57 +0000
19@@ -0,0 +1,27 @@
20+Subject: Discard extra "M" lines in response to "version"
21+From: Richard Hansen <ubuntu-a7x@scientician.org>
22+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1413084
23+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775883
24+
25+Some CVS servers print more than one "M" line in response to a
26+"version" command. For example:
27+
28+Client: version
29+Server: M Concurrent Versions System (CVS) 1.12.13 (client/server)
30+Server: M with CVSACL Patch 1.2.5 (cvsacl.sourceforge.net)
31+Server: ok
32+
33+This patch causes cvsps to consume all such lines rather than fail.
34+
35+--- a/cvs_direct.c
36++++ b/cvs_direct.c
37+@@ -916,7 +916,8 @@
38+ else
39+ debug(DEBUG_APPERROR, "cvs_direct: didn't read version: %s", lbuff);
40+
41+- read_line(ctx, lbuff);
42++ while (strncmp(lbuff, "M ", 2) == 0)
43++ read_line(ctx, lbuff);
44+ if (strcmp(lbuff, "ok") != 0)
45+ debug(DEBUG_APPERROR, "cvs_direct: protocol error reading version");
46+
47
48=== modified file 'debian/patches/series'
49--- debian/patches/series 2011-04-07 23:18:19 +0000
50+++ debian/patches/series 2015-02-11 19:36:57 +0000
51@@ -2,3 +2,4 @@
52 02_dynamicbufferalloc.patch
53 03_diffoptstypo.patch
54 05-inet_addr_fix.patch
55+06-discard-extra-version-lines.patch

Subscribers

People subscribed via source and target branches