mvfile fails across file systems

Bug #1092346 reported by Matt Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raise
Fix Released
Critical
Unassigned

Bug Description

The command mvfile uses os.rename() to move a file. But os.rename() will fail with "OSError: [Errno 18] Invalid cross-device link" when moving across file systems. For example moving a file in /tmp to /home in Fedora will fail.

Shutil does not have this problem.

Change the os.rename() to shutil.move()

Revision history for this message
Matt Jones (workhorsy) wrote :
Changed in raise:
status: Confirmed → Fix Committed
Matt Jones (workhorsy)
Changed in raise:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.