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
=== modified file 'debian/changelog'
--- debian/changelog 2012-10-01 20:57:26 +0000
+++ debian/changelog 2015-02-11 19:36:57 +0000
@@ -1,3 +1,10 @@
1cvsps (2.1-6ubuntu1) vivid; urgency=medium
2
3 * Discard extra "M" response lines when reading the server's
4 version. (LP: 1413084)
5
6 -- Richard Hansen <ubuntu-a7x@scientician.org> Tue, 20 Jan 2015 23:29:12 -0500
7
1cvsps (2.1-6build1) quantal; urgency=low8cvsps (2.1-6build1) quantal; urgency=low
29
3 * Rebuild for new armel compiler default of ARMv5t.10 * Rebuild for new armel compiler default of ARMv5t.
411
=== added file 'debian/patches/06-discard-extra-version-lines.patch'
--- debian/patches/06-discard-extra-version-lines.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/06-discard-extra-version-lines.patch 2015-02-11 19:36:57 +0000
@@ -0,0 +1,27 @@
1Subject: Discard extra "M" lines in response to "version"
2From: Richard Hansen <ubuntu-a7x@scientician.org>
3Bug-Ubuntu: https://bugs.launchpad.net/bugs/1413084
4Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775883
5
6Some CVS servers print more than one "M" line in response to a
7"version" command. For example:
8
9Client: version
10Server: M Concurrent Versions System (CVS) 1.12.13 (client/server)
11Server: M with CVSACL Patch 1.2.5 (cvsacl.sourceforge.net)
12Server: ok
13
14This patch causes cvsps to consume all such lines rather than fail.
15
16--- a/cvs_direct.c
17+++ b/cvs_direct.c
18@@ -916,7 +916,8 @@
19 else
20 debug(DEBUG_APPERROR, "cvs_direct: didn't read version: %s", lbuff);
21
22- read_line(ctx, lbuff);
23+ while (strncmp(lbuff, "M ", 2) == 0)
24+ read_line(ctx, lbuff);
25 if (strcmp(lbuff, "ok") != 0)
26 debug(DEBUG_APPERROR, "cvs_direct: protocol error reading version");
27
028
=== modified file 'debian/patches/series'
--- debian/patches/series 2011-04-07 23:18:19 +0000
+++ debian/patches/series 2015-02-11 19:36:57 +0000
@@ -2,3 +2,4 @@
202_dynamicbufferalloc.patch202_dynamicbufferalloc.patch
303_diffoptstypo.patch303_diffoptstypo.patch
405-inet_addr_fix.patch405-inet_addr_fix.patch
506-discard-extra-version-lines.patch

Subscribers

People subscribed via source and target branches