Your message dated Wed, 21 Dec 2005 13:50:56 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Done in 5.93
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 22 Mar 2004 02:10:48 +0000
>From [EMAIL PROTECTED] Sun Mar 21 18:10:48 2004
Return-path: <[EMAIL PROTECTED]>
Received: from h00045a576c6a.ne.client2.attbi.com 
(h0040333b7dc3.ne.mediaone.net) [65.96.98.23] (postfix)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1B5Ets-0001Qx-00; Sun, 21 Mar 2004 18:10:48 -0800
Received: by h0040333b7dc3.ne.mediaone.net (Postfix, from userid 1000)
        id CF81A100AA826; Sun, 21 Mar 2004 21:10:46 -0500 (EST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Glenn Maynard <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: coreutils: cp --preserve=timestamps -u copies repeatedly
X-Mailer: reportbug 2.53
Date: Sun, 21 Mar 2004 21:10:46 -0500
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_12 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-7.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2004_03_12
X-Spam-Level: 

Package: coreutils
Version: 5.0.91-2
Severity: normal

08:38pm [EMAIL PROTECTED]/3 [~] touch test
08:38pm [EMAIL PROTECTED]/3 [~] cp --preserve=timestamps -u -v test test2
`test' -> `test2'
08:38pm [EMAIL PROTECTED]/3 [~] ls -l test test2
-rw-r--r--    1 glenn    users           0 Mar 21 20:38 test
-rw-r--r--    1 glenn    users           0 Mar 21 20:38 test2
08:38pm [EMAIL PROTECTED]/3 [~] cp --preserve=timestamps -u -v test test2
`test' -> `test2'
08:38pm [EMAIL PROTECTED]/3 [~] cp --preserve=timestamps -u -v test test2
`test' -> `test2'

It's copying the file, even though it has the same timestamp.

This is because --preserve=timestamps is only copying timestamps to the
microsecond (all utimes() handles), but -u compares timestamps to the
nanosecond.  The newly created file is having its timestamp truncated,
so -u always thinks the file is out of date.

I'd suggest the lesser evil would be for -u to only compare timestamps
to the microsecond.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.0
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8

Versions of packages coreutils depends on:
ii  libacl1                     2.2.23-1     Access control list shared library
ii  libattr1                    2.4.15-1     Extended attribute shared library
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an

-- no debconf information

---------------------------------------
Received: (at 239288-done) by bugs.debian.org; 21 Dec 2005 12:51:28 +0000
>From [EMAIL PROTECTED] Wed Dec 21 04:51:28 2005
Return-path: <[EMAIL PROTECTED]>
Received: from mailservice.tudelft.nl ([130.161.131.5])
        by spohr.debian.org with esmtp (Exim 4.50)
        id 1Ep3RI-0002e5-E6
        for [EMAIL PROTECTED]; Wed, 21 Dec 2005 04:51:28 -0800
Received: from localhost (localhost [127.0.0.1])
        by rav.antivirus (Postfix) with ESMTP id B3B4522F056
        for <[EMAIL PROTECTED]>; Wed, 21 Dec 2005 13:50:57 +0100 (CET)
Received: from 82-171-132-56.dsl.ip.tiscali.nl (x088.decis.nl [130.161.177.88])
        by mx1.tudelft.nl (Postfix) with ESMTP id 7343922EF53
        for <[EMAIL PROTECTED]>; Wed, 21 Dec 2005 13:50:57 +0100 (CET)
Received: from [127.0.0.1] (localhost [127.0.0.1])
        by 82-171-132-56.dsl.ip.tiscali.nl (Postfix) with ESMTP id 0C5A2C01CF
        for <[EMAIL PROTECTED]>; Wed, 21 Dec 2005 13:50:56 +0100 (CET)
Message-ID: <[EMAIL PROTECTED]>
Date: Wed, 21 Dec 2005 13:50:56 +0100
From: Thomas Hood <[EMAIL PROTECTED]>
User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Subject: Done in 5.93
X-Enigmail-Version: 0.92.1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by amavisd-new at tudelft.nl
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02

[EMAIL PROTECTED]:/tmp/w$ touch test
[EMAIL PROTECTED]:/tmp/w$ cp --preserve=timestamps -u -v test test2
`test' -> `test2'
[EMAIL PROTECTED]:/tmp/w$ ls -l test test2
-rw-r--r-- 1 jdthood jdthood 0 2005-12-21 13:49 test
-rw-r--r-- 1 jdthood jdthood 0 2005-12-21 13:49 test2
[EMAIL PROTECTED]:/tmp/w$ ls -l --full-time
total 0
-rw-r--r-- 1 jdthood jdthood 0 2005-12-21 13:49:11.000000000 +0100 test
-rw-r--r-- 1 jdthood jdthood 0 2005-12-21 13:49:11.000000000 +0100 test2
[EMAIL PROTECTED]:/tmp/w$ cp --preserve=timestamps -u -v test test2
[EMAIL PROTECTED]:/tmp/w$ cp --preserve=timestamps -u -v test test2
[EMAIL PROTECTED]:/tmp/w$ cp --version
cp (GNU coreutils) 5.93
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Torbjorn Granlund, David MacKenzie, and Jim Meyering.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to