Package: patch
Version: 2.7.1-3
Severity: normal

Dear Maintainer,

patch 2.7 refuses to patch files with absolute path names
(without option -d/).

This is an essential change in program behaviour and possibly
breaks sysadm scripts. This change should be documented in the
man page and announced as package news.

Regards

Uwe


Example:

$ patch -p0 </tmp/p
Ignoring potentially dangerous file name /tmp/a.old
Ignoring potentially dangerous file name /tmp/a
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- /tmp/a.old 2013-07-16 18:30:53.726805297 +0200
|+++ /tmp/a     2013-07-16 18:31:03.850761947 +0200
--------------------------
File to patch: /tmp/a
patching file /tmp/a
$


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (750, 'testing'), (650, 'unstable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.9-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (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.6-2

-- no debconf information
1
2
3
4
5
--- /tmp/a.old	2013-07-16 18:30:53.726805297 +0200
+++ /tmp/a	2013-07-16 18:31:03.850761947 +0200
@@ -1,5 +1,4 @@
 1
 2
-3
 4
 5

Reply via email to