Bug 104344 - ar command fails to preserve dates across NFS
Summary: ar command fails to preserve dates across NFS
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: binutils
Version: 3.0
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-09-12 21:21 UTC by Tim Johnson
Modified: 2007-11-30 22:06 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-05-18 13:45:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2005:260 0 normal SHIPPED_LIVE binutils bug fix update 2005-05-18 04:00:00 UTC

Description Tim Johnson 2003-09-12 21:21:18 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; SunOS 5.8 sun4u)

Description of problem:
When you specify 'ar -xo foo.ar one', the object is extracted but the old date
is not preserved.

It works just fine on a local disk. The nfs mounts were performed by autofs4. I
get identical behavior on a RH 9.0 Box. The ar command seems to work correctly
on RH 7.1 (binutils-2.10.91.0.2-3) to same disk partition.

The file server is a Sun Cluster.

Version-Release number of selected component (if applicable):
binutils-2.13.90.0.18-9

How reproducible:
Always

Steps to Reproduce:
1.On NFS partition: ar cr one
2.rm one
3.ar xo one



Actual Results:  The following error message is displayed:
    ar: one: cannot set time: Invalid argument

File 'one' was extracted. Old timestamp was not preserved

Expected Results:  Old file timestamp should be preserved

Additional info:

Here is the output from mount:
orfsrv1.hillsboro.credence.com:/export/ag4/users/tjohnson on /u/tjohnson type
nfs (rw,nosuid,addr=10.4.10.153)

I tried it on another file sytem that was mounted as follows:
orfsrv1:/export/vol/engr/cobalt on /ims/cobalt type nfs (rw,addr=10.4.10.153)

The file server is a Sun Cluster.

Comment 1 Jakub Jelinek 2003-09-14 20:35:58 UTC
What exact glibc version?

Comment 2 Tim Johnson 2003-10-08 17:31:45 UTC
% rpm -q glibc
glibc-2.3.2-85

Comment 3 Jakub Jelinek 2004-10-25 16:38:51 UTC
Looking into ar, I found it is calling utime () with unitialized
struct utimbuf's actime (and correctly initialized modtime).
Maybe the NFS server is picky what access times it allows to be used.
I think
http://sources.redhat.com/ml/binutils/2004-10/msg00405.html
should fix the problem for you.

Comment 4 Jakub Jelinek 2005-02-14 10:59:18 UTC
Should be fixed in binutils-2.14.90.0.4-37.

Comment 5 Tim Powers 2005-05-18 13:45:48 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-2005-260.html



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