Bug 216111 - gzip munges directory mtime with "-r"
Summary: gzip munges directory mtime with "-r"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: gzip
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Ivana Varekova
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-11-17 11:01 UTC by Bastien Nocera
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version: RHBA-2007-0502
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-06-27 12:37:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0502 0 normal SHIPPED_LIVE gzip bug fix update 2007-11-15 17:35:53 UTC

Description Bastien Nocera 2006-11-17 11:01:04 UTC
When using "-r" gzip will try to restore the atime and mtime of the directory
passed using utime(), thus breaking cache invalidation for NFS (which relies on
the mtime).

The code does this on purpose:
   /* If the input name is that of a directory, recurse or ignore: */
   if (S_ISDIR(istat.st_mode)) {
#if ! NO_DIR
       if (recursive) {
           struct stat st;
           st = istat;
           treat_dir(iname);
           /* Warning: ifname is now garbage */
#  ifndef NO_UTIME
           reset_times (iname, &st);
#  endif
       } else

I tried mailing Jean-Loup and the bug list (as per
http://www.math.utah.edu/docs/info/gzip_8.html#SEC11 followed from gzip.org)
without success (bounced mails).

What's the reasoning behind restoring the mtime for the directory?

Comment 17 Red Hat Bugzilla 2007-06-27 12:37:01 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0502.html


Comment 18 Issue Tracker 2007-07-03 22:24:25 UTC
The gzip errata packge does fix this bug.  Closing ticket.  Thanks!

Internal Status set to 'Resolved'
Status set to: Closed by Client

This event sent from IssueTracker by jmbastia 
 issue 106657


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