logo       

Re: Bug in patch 2.5.4 or its documentation: msg#00217

Subject: Re: Bug in patch 2.5.4 or its documentation
> From: "Derek R. Price" <derek.price@xxxxxxxxxxxxxx>
> Date: Thu, 08 Feb 2001 14:07:03 -0500
> 
> As near as I can read the man page, files should be created by patch
> if the original is listed as /dev/null or is empty and has a
> creation time of the Epoch (1970-01-01 00:00:00 UTC),

Yes, that's correct.

> regardless of
> whether --posix has been specified (it claims --posix will cause
> patch to conform to the POSIX.2 specification).

This part is not correct, as of POSIX 1003.1-2001.  The new POSIX spec
requires that the file must exist for it to be patched.  This is not
very reasonable, but it's what the spec says.

>      [dprice@empress temp]$ echo a line >tmp
>      [dprice@empress temp]$ diff -cN /dev/null tmp >tmp.diff
>      [dprice@empress temp]$ cd test
>      [dprice@empress test]$ patch --posix -p0 <../tmp.diff
>      can't find file to patch at input line 3

This is the correct behavior.  If you remove the "--posix" though,
it should work as you expected.  That was a bug in "patch" that is
(finally!) fixed in the latest test version, which you can get from:

ftp://alpha.gnu.org/gnu/patch/patch-2.5.6.tar.gz

Thanks for your bug report.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
web.pylons.gene...    hurd.l4/2002-10...    kernel.commits....    user-groups.lin...    yellowdog.gener...    java.drools.use...    security.openva...    package-managem...    linux.debian.us...    qnx.openqnx.dev...    genealogy.gramp...    file-systems.if...    voip.wengophone...    tex.context/200...    ietf.smime/2003...    audio.csound.de...    culture.region....    xfree86.devel/2...    mobile.kannel.u...    distributed.con...    education.engli...    org.user-groups...    bug-tracking.gn...    recreation.bicy...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe