Package: coreutils
Version: 5.2.1-2
Severity: normal
File: /bin/cp

The modifiation time isn't preserved despite the -p option.

Also, after the cp process, the atime is prior to the ctime (at least for
the example that follows).

cpio exhibits a similar if not identical behavior.

*** reportbug_cp.txt
ls -l --time=atime --time-style=full-iso /etc/hostname
-rw-r--r--  1 root root 8 2005-08-01 15:36:46.653610344 -0400 /etc/hostname

ls -l --time=ctime --time-style=full-iso /etc/hostname
-rw-r--r--  1 root root 8 2005-07-24 16:45:00.000000000 -0400 /etc/hostname

cp -p /etc/hostname /tmp
cp: overwrite `/tmp/hostname'? y

ls -l --time=atime --time-style=full-iso /tmp/hostname
-rw-r--r--  1 root root 8 2005-08-01 15:36:46.653610000 -0400 /tmp/hostname

ls -l --time=ctime --time-style=full-iso /tmp/hostname
-rw-r--r--  1 root root 8 2005-08-01 16:21:33.797102440 -0400 /tmp/hostname


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

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

-- no debconf information


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

Reply via email to