Package: patch
Version: 2.7.1-3
Severity: important

Starting with 'test' containing:

--- BEGIN ---
1
2
3
4
5
6
--- END ---

and applying the patch:

--- BEGIN ---
--- test~
+++ test
@@ -1,6 +1,7 @@
 1
 2
 3
+a
 4
 5
 6
@@ -7,6 +8,7 @@
 1
 2
 3
+b
 4
 5
 6
--- END ---

the result is:

--- BEGIN ---
1
2
3
a
b
4
5
6
--- END ---

(with no fuzz, only an offset).

This is clearly wrong.  If the insertions were meant to be immediately
adjacent then they would have been a single hunk.  Once one hunk has
been applied, the context is no longer correct for the second hunk.

Ben.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.10-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages patch depends on:
ii  libc6  2.17-7

patch recommends no packages.

Versions of packages patch suggests:
pn  diffutils-doc  <none>
ii  ed             1.9-1

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to