Package: coreutils
Version: 8.13-3.5
Severity: critical
File: /bin/cp
Justification: causes serious data loss

creating two files, identical names, different dates. 
after executing cp --attributes-only second file has no data.
cp shouldn't delete anything, just copy.
debian stable shouldn't have this issue. it's fixed in 8.17,
there is no backport to stable since May 2012.



yavor@host:~$ cat > aaaaa
data
yavor@host:~$ mkdir b
yavor@host:~$ touch -d "2015-01-01  00:00:00" aaaaa
yavor@host:~$ cat > b/aaaaa
data2
yavor@host:~$ cp --attributes-only aaaaa b/aaaaa
yavor@host:~$ cat b/aaaaa
yavor@host:~$ ls -la b/
total 8
drwxr-xr-x 2 yavor yavor 4096 Mar 12 04:51 .
drwxr-xr-x 3 yavor yavor 4096 Mar 12 04:48 ..
-rw-r--r-- 1 yavor yavor    0 Mar 12 04:52 aaaaa




-- System Information:
Debian Release: 7.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages coreutils depends on:
ii  dpkg          1.16.15
ii  install-info  4.13a.dfsg.1-10
ii  libacl1       2.2.51-8
ii  libattr1      1:2.4.46-8
ii  libc6         2.13-38+deb7u8
ii  libselinux1   2.1.9-5

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information


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

Reply via email to