From owner-freebsd-bugs@FreeBSD.ORG Thu Sep 1 05:00:22 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A58A6106564A for ; Thu, 1 Sep 2011 05:00:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 919878FC08 for ; Thu, 1 Sep 2011 05:00:22 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8150MuN021163 for ; Thu, 1 Sep 2011 05:00:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8150M2r021162; Thu, 1 Sep 2011 05:00:22 GMT (envelope-from gnats) Date: Thu, 1 Sep 2011 05:00:22 GMT Message-Id: <201109010500.p8150M2r021162@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: "deeptech71@gmail.com" Cc: Subject: Re: bin/138858: patch(1) assumes that a file appears only once in the patch in check-only mode X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "deeptech71@gmail.com" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2011 05:00:22 -0000 The following reply was made to PR bin/138858; it has been noted by GNATS. From: "deeptech71@gmail.com" To: bug-followup@freebsd.org Cc: Subject: Re: bin/138858: patch(1) assumes that a file appears only once in the patch in check-only mode Date: Thu, 1 Sep 2011 06:50:36 +0200 i've just noticed that in my 2nd message i've screwed up the command flags. restating everything: put words.txt and con.patch in one directory, cd to that directory, and then do: $ cat con.patch | patch -sp1 --check the --check flag means "do not actually edit files, just check to see what would happen". the above test run says that the patch applies cleanly. now do: $ cat con.patch | patch -sp1 notice that now the patch actually fails, so the test run lied.