bugGNU Core Utilities - Bugs: bug #11311, cp command: -u (Update) option...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #11311: cp command: -u (Update) option broken when platform supports sub-second mtimes

Submitted by:  None
Submitted on:  Mon 13 Dec 2004 04:29:21 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue 21 Dec 2004 06:55:16 AM UTC, comment #2:

I think this bug was fixed in CVS coreutils on March 27.

For the patch, please see
<http://lists.gnu.org/archive/html/bug-coreutils/2004-03/msg00095.html>.

Paul Eggert <eggert>
Project Administrator
Mon 13 Dec 2004 04:30:39 PM UTC, comment #1:

Forgot to say: I don't have an account here, but you can contact me at -unavailable-

/tom kistner

Anonymous
Mon 13 Dec 2004 04:29:21 PM UTC, original submission:

Hi,

I'm using Linux 2.6 and XFS filesystem. When I use cp to "archive" a file like this

cp -vau test.txt backup.txt

then it should not copy the file when I repeat the same command, since the mtime on both files MUST be equal. However, it will copy the file over and over again. The mtime is the same in 'ls'. I checked sys2.h where MTIME_CMP is defined, and it seems the problem is related to sub-second mtime precision. When ST_MTIM_NSEC is UNDEFINED, then 'cp' behaves like it should. So the problem will not appear on Platforms/FS where ST_MTIM_NSEC is undef (I checked some other machines with Linux 2.4/ext3 where the bug does not show).

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 31 Aug 2016 07:15:41 PM UTCmtmillerDependencies-=>bugs #48961 is dependent
Tue 12 Jul 2016 04:41:40 PM UTCmtmillerDependencies-=>bugs #48469 is dependent
Tue 21 Dec 2004 06:55:16 AM UTCeggertStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1