From owner-freebsd-bugs@FreeBSD.ORG Tue Aug 13 20:30:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id DCF18F47 for ; Tue, 13 Aug 2013 20:30:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A7E142315 for ; Tue, 13 Aug 2013 20:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7DKU0GZ000245 for ; Tue, 13 Aug 2013 20:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7DKU0RY000242; Tue, 13 Aug 2013 20:30:00 GMT (envelope-from gnats) Resent-Date: Tue, 13 Aug 2013 20:30:00 GMT Resent-Message-Id: <201308132030.r7DKU0RY000242@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthias Andree Received: from apollo.emma.line.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 31F42CC5 for ; Tue, 13 Aug 2013 20:25:22 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from mandree by apollo.emma.line.org with local (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1V9L9m-000HOX-0e for FreeBSD-gnats-submit@freebsd.org; Tue, 13 Aug 2013 22:25:30 +0200 Message-Id: Date: Tue, 13 Aug 2013 22:25:30 +0200 From: Matthias Andree To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/181272: patch can't deal with blanks in filenames, GNU patch can X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Andree List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Aug 2013 20:30:00 -0000 >Number: 181272 >Category: bin >Synopsis: patch can't deal with blanks in filenames, GNU patch can >Confidential: no >Severity: critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 13 20:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Matthias Andree >Release: FreeBSD 9.1-RELEASE-p5 amd64 >Organization: >Environment: System: FreeBSD apollo.emma.line.org 9.1-RELEASE-p5 FreeBSD 9.1-RELEASE-p5 #0: Sat Jul 27 01:14:23 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: FreeBSD 9.1-RELEASE's /usr/bin/patch cannot handle unified patches with a blank in the filename, while GNU patch (from ports, installed as gpatch) can. Note that the filename on +++/--- lines extends from between the blank after these three characters up to the next tab character. Arguably this is nonstandard or unspecified behaviour, but then again POSIX did not specify diff's -u format until very recently; and defers to GNU diff. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: