|
|
Subscribe / Log in / New account

GNU patch version 2.7 released

From:  Andreas Grünbacher <agruen-AT-gnu.org>
To:  bug-patch-AT-gnu.org
Subject:  GNU patch version 2.7 released
Date:  Wed, 12 Sep 2012 16:22:26 +0200
Message-ID:  <CAHpGcMKsLkyrxDBe8t2owdjtkk0dnpONRrQDDB9UcdctSK35jg@mail.gmail.com>
Cc:  git-AT-vger.kernel.org, bug-diffutils-AT-gnu.org
Archive‑link:  Article

I am pleased to announce that version 2.7 of GNU patch has been
released. The following significant changes have happened since the
last stable release in December 2009:

* Support for most features of the "diff --git" format, including renames and
  copies, permission changes, and symlink diffs.  Binary diffs are not
  supported yet; patch will complain and skip them.

* Support for double-quoted filenames: when a filename starts with a double
  quote, it is interpreted as a C string literal.  The escape sequences \\, \",
  \a, \b, \f, \n, \r, \t, \v, and \ooo (a three-digit octal number between 0 and
  255) are recognized.

* Ignore destination file names that are absolute or that contain a component
  of "..".  This addresses CVE-2010-4651.

* Refuse to apply a normal patch to a symlink.  (Previous versions of patch
  were replacing the symlink with a regular file.)

* When trying to modify a read-only file, warn about the potential problem
  by default.  The --read-only command line option allows to change this
  behavior.

* Files to be deleted are deleted once the entire input has been processed, not
  immediately.  This fixes a bug with numbered backup files.

* When a timestamp specifies a time zone, honor that instead of assuming the
  local time zone (--set-date) or Universal Coordinated Time (--set-utc).

* Support for nanosecond precision timestamps.

* Patch no longer gets a failed assertion for certain mangled patches.

* Many portability and bug fixes.

Release tarballs are available at:

  ftp://ftp.gnu.org/gnu/patch/

Please report bugs or suggestions on the <bug-patch@gnu.org> mailing list, or
in the project's bug tracker on Savannah:

  http://savannah.gnu.org/projects/patch

Thanks,
Andreas



(Log in to post comments)

GNU patch version 2.7 released

Posted Sep 13, 2012 3:22 UTC (Thu) by NightMonkey (subscriber, #23051) [Link]

So, congrats, patch devs. I'm curious, do you-all follow the "eat your own dogfood" model, and use the development version of patch to accept new patches? ;)

GNU patch version 2.7 released

Posted Sep 16, 2012 19:28 UTC (Sun) by rwmj (subscriber, #5474) [Link] (1 responses)

It also shipped with a rather nasty bug:

http://article.gmane.org/gmane.comp.gnu.patch.bugs/380

Distros might want to hold off or apply the patch from the testing branch.

GNU patch version 2.7 released

Posted Sep 17, 2012 1:38 UTC (Mon) by mathstuf (subscriber, #69389) [Link]

> Distros might want to hold off or apply the patch from the testing branch.

With what? ;)

Sorry, couldn't resist.


Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds