Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 42666 - gendiff bug
gendiff bug
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-05-29 05:51 EDT by Tim Waugh
Modified: 2007-04-18 12:33 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-05-29 05:51:52 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Tim Waugh 2001-05-29 05:51:48 EDT
When patch creates a backup of a file that doesn't exist, it makes it 
unreadable (this is documented behaviour).

Gendiff ought to check that $f is readable first, like:

if [ -r "$f" ]
  diff ${U} /dev/null "${f%$2}"
  diff ${U} "${f}" "${f$2}"

(Mandrake's approach is to change patch's behaviour, but I think that 
really gendiff should be fixed instead.)
Comment 1 Jeff Johnson 2002-07-13 15:58:15 EDT
Fixed (finally) in CVS, should be in rpm-4.1-0.48

Note You need to log in before you can comment on or make changes to this bug.