Bug 42666 - gendiff bug
gendiff bug
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
7.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
David Lawrence
:
Depends On:
Blocks:
  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:
Environment:
Last Closed: 2001-05-29 05:51:52 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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" ]
then
  diff ${U} /dev/null "${f%$2}"
else
  diff ${U} "${f}" "${f$2}"
fi

(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.