Your message dated Mon, 07 Feb 2011 01:46:09 +0000
with message-id <[email protected]>
and subject line Bug#568248: fixed in patch 2.6.1-1
has caused the Debian Bug report #568248,
regarding patch creates files and directories instead of asking for the file
location
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
568248: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568248
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: patch
Version: 2.6-2
Hi,
since version 2.6 of patch it has a weird behaviour. If the specified
-p parameter is wrong (and the file can therefore not be found) patch
now creates the whole path to the file and some files therein.
Example:
- Lets say you have a directory structure as in:
1/a/b/c/xyz
2/a/b/c/xyz
(where xyz is a file and both files are different)
- You have a patch that was generated with diff -Nur 1 2 (so
for patch -p0 you would have to apply it from the directory
where the two top level directories 1 and 2 are in)
- You now try to apply the patch from within of '2'
with the wrong -p0 parameter.
The result will be:
- 2/2/a/b/c/xyz
I have prepared a small test case that can be used to verify
that. See the attached tarball for the filesystem hierarchy
and the patch.
Just enter the directory test2 and try to apply the patch
with -p0.
Expected result if patch would work correctly:
Ask for the filename to patch as it did in 2.5.x.
Best Regards,
Patrick
test_directories.tgz
Description: GNU Unix tar archive
diff -u -Nur test1/a/b/c/xyz test2/a/b/c/xyz
--- test1/a/b/c/xyz 2010-02-03 13:56:38.319392924 +0100
+++ test2/a/b/c/xyz 2010-02-03 13:54:37.886386605 +0100
@@ -0,0 +1 @@
+1
--- End Message ---
--- Begin Message ---
Source: patch
Source-Version: 2.6.1-1
We believe that the bug you reported is fixed in the latest version of
patch, which is due to be installed in the Debian FTP archive:
patch_2.6.1-1.diff.gz
to main/p/patch/patch_2.6.1-1.diff.gz
patch_2.6.1-1.dsc
to main/p/patch/patch_2.6.1-1.dsc
patch_2.6.1-1_i386.deb
to main/p/patch/patch_2.6.1-1_i386.deb
patch_2.6.1.orig.tar.gz
to main/p/patch/patch_2.6.1.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Christoph Berg <[email protected]> (supplier of updated patch package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sun, 06 Feb 2011 20:19:30 +0100
Source: patch
Binary: patch
Architecture: source i386
Version: 2.6.1-1
Distribution: unstable
Urgency: low
Maintainer: Christoph Berg <[email protected]>
Changed-By: Christoph Berg <[email protected]>
Description:
patch - Apply a diff file to an original
Closes: 484539 568248
Changes:
patch (2.6.1-1) unstable; urgency=low
.
* New upstream version.
+ Improved CR stripping heuristics. Closes: #484539
+ Fixes: creates files and directories instead of asking for the file
location. Closes: #568248
* Remove lenny compatibility options -U --unified-reject-files and
--global-reject-file.
Checksums-Sha1:
3cb59d22effd973128f3a5a85bf5bf6c07b64f0d 1693 patch_2.6.1-1.dsc
a50deb8cb6daa5e2997e7a9a36adb78980f95332 303692 patch_2.6.1.orig.tar.gz
2108468368bbb91f109bf47b709747e3edaf19b1 65463 patch_2.6.1-1.diff.gz
2c5d9210e51d2fa84d76dd7298cd08207f24e92f 123600 patch_2.6.1-1_i386.deb
Checksums-Sha256:
98d12761b095d0d33e9503ed36b93dfbf6738a0f5b1185dcefd8cf21375bbdaf 1693
patch_2.6.1-1.dsc
d1563731e9cffed11cc5f011b2b8e074c325e86a383a91889b5c5b80b09781b9 303692
patch_2.6.1.orig.tar.gz
ea93568c9a13044a17e3d2e4c1cf68d567919c8b13490933274e1dfeddac9bab 65463
patch_2.6.1-1.diff.gz
20baef33d076688d3ce1f674d1f5ee3d4919ca69e5584d67006c825d79b31d05 123600
patch_2.6.1-1_i386.deb
Files:
35d9834aad598aa6b5ef4128f2be1dac 1693 vcs standard patch_2.6.1-1.dsc
d758eb96d3f75047efc004a720d33daf 303692 vcs standard patch_2.6.1.orig.tar.gz
4b8d33e570e8117981beb00fca53834d 65463 vcs standard patch_2.6.1-1.diff.gz
63d946110c83a1c0852c3d295abdc098 123600 vcs standard patch_2.6.1-1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQIcBAEBCAAGBQJNTwfgAAoJEExaa6sS0qeuFPcP/iSvVOFFYvHI78/YwCH/uJCh
8L9jycjG0FEN17dL5aX0c8VGkbmBdBxRKHkTHjNvtGqz3OeB8m07gcU1idA8rO4j
dK453O1dirFp8JrsUaacXU6u934LfEvs+vYXB3ZKfFjX/s6FRgVbeDUlsIWF+eUS
uDtdWyWxKdqf4R4/5gZCdSqrPHzLinM9xWRMbo6cWKhrDlGGJTxL0BPIoF++Vl+a
gAAIYwUhAU7D/p3RJXqhzDHg9FWmRYLvBjZHM4RO5Co1hrzhDGJCFz4Zgo+GR5qz
ZpMNkWKza5fYd+Q22DITwJqG8T4gC0Ydx/1/n4nI0UkE4WHvaW8AaXxZn3zxc+Xj
20Xn4LK9Q9s1DsahwKE0nZPBYB4QQbzgr1SegOTRZcrj7qnERn7xXUASsPBD22Fe
cRdU6LOu5LwU4oj8O4hIRr8mod9OmG2g10TbehhFeJVoNsCJZ9WYC7XXFl4nyQMJ
VgdtkAJdEEr2tt2GDn6T5WbfaqYToNYtjuA625f3IUkX9ySixF/GVwgEyryKpWIG
7/ZES1XaZ2GZFVXnLr3UTCzUvyYCA/S4A65e9GOT3+kKnWQ0gEWFsuG7SmP7HI18
3GSv1hFQnAMMFv4aoL0TOeVNvneANC5FoeqoTwK+riAt4vVi2kA9xrqnTq/F5vKc
yNzRF1qmhbOL0kwwqahx
=dZTE
-----END PGP SIGNATURE-----
--- End Message ---