Bug 2978

Summary: moving files causing issues
Product: [Retired] Red Hat Linux Reporter: cyeo
Component: fileutilsAssignee: David Lawrence <dkl>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-05-24 19:06:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description cyeo 1999-05-23 04:56:41 UTC
When you 'force' a move to the same filename (by accident)
it will unlink the file... here is the log:

root@zeppelin:[ /tmp/test ] l
total 0
root@zeppelin:[ /tmp/test ] echo > test
root@zeppelin:[ /tmp/test ] l
total 1
   1 -rw-r--r--   1 root     root            1 May 22 22:53
test
root@zeppelin:[ /tmp/test ] /bin/mv test test
/bin/mv: `test' and `test' are the same file
root@zeppelin:[ /tmp/test ] l
total 1
   1 -rw-r--r--   1 root     root            1 May 22 22:53
test
root@zeppelin:[ /tmp/test ] /bin/mv -f test test
/bin/mv: `test' and `test' are the same file
root@zeppelin:[ /tmp/test ] l
total 0

Comment 1 Jay Turner 1999-05-24 19:06:59 UTC
This is the correct behavior for mv -f and therefore is not a bug.

------- Email Received From  "Chris Y." <cyeo@biking.org> 05/24/99 23:40 -------