Package: cmake
Version: 2.8.9-1
Severity: normal

Dear Maintainer,

When using "cmake -E touch" on an existing file, the modification time
is truncated at the precision of a second.  This can be seen e.g. on an
ext4 filesystem.

How to reproduce (file1 is used with "touch", and file2 is used with
"cmake -E touch"):

# In an empty directory...
$ ls -l
total 0

# Create the two files: file1 and file2
$ touch file1 ; cmake -E touch file2 ; ls -l --full-time  
-rw-r----- 1 xxxx xxxx 0 2013-02-03 02:00:57.827669619 +0100 file1
-rw-r----- 1 xxxx xxxx 0 2013-02-03 02:00:57.831669779 +0100 file2

# Note that the times look good here (file1 < file2)

# Touch the two files again
$ touch file1 ; cmake -E touch file2 ; ls -l --full-time  
-rw-r----- 1 xxxx xxxx 0 2013-02-03 02:01:01.595819478 +0100 file1
-rw-r----- 1 xxxx xxxx 0 2013-02-03 02:01:01.000000000 +0100 file2


Now, the modification time of file2 is *before* that of file1, but file2
was touched *after* file1.

Regards,

Arnaud Giersch


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to