View Issue Details

IDProjectCategoryView StatusLast Update
0005119CentOS-5coreutilspublic2011-09-17 21:48
Reporterdbr Assigned To 
Status acknowledgedResolutionopen 
Platformx86_64OS Version5.7 
Summary0005119: cp: Dosn't make a backup if the last component of the source name is "."
Descriptioncp doesn't make backup if last component of the source name is ".".

That seems to be a known bug that wasn't fix in CentOS 5.7. coreutils from CentOS 5.6 were okay.
Steps To Reproduce

CentOS 5.7 (buggy)

[root@centos57 ~]# cat /etc/redhat-release
CentOS release 5.7 (Final)
[root@centos57 ~]# rpm -qa | grep ^coreutils
[root@centos57 ~]# mkdir x y
[root@centos57 ~]# cd y
[root@centos57 y]# cp -ab ../x/. .
cp: cannot backup `./.': Device or resource busy

CentOS 5.6 (okay)

[root@centos56 ~]# cat /etc/redhat-release
CentOS release 5.6 (Final)
[root@centos56 ~]# rpm -qa | grep ^coreutils
[root@centos56 ~]# mkdir x y
[root@centos56 ~]# cd y
[root@centos56 y]# cp -ab ../x/. .
TagsNo tags attached.




2011-09-17 13:10

reporter   ~0013293

Might be related to


2011-09-17 20:56


This needs to be addressed upstream (and yes, they don't frown upon bug reports from CentOS users).

A quick search doesn't reveal any report of this at


2011-09-17 21:48

administrator   ~0013298

ack'ed: registered upstream at

Issue History

Date Modified Username Field Change
2011-09-17 13:09 dbr New Issue
2011-09-17 13:10 dbr Note Added: 0013293
2011-09-17 20:56 user430 Note Added: 0013297
2011-09-17 21:48 tru Note Added: 0013298
2011-09-17 21:48 tru Status new => acknowledged