[mythtv-commits] Ticket #2211: SVN won't delete symlinks

MythTV mythtv at cvs.mythtv.org
Mon Aug 21 13:37:03 UTC 2006

#2211: SVN won't delete symlinks
 Reporter:  mythtv-dev (at) dwilga-linux1.amherst.edu  |       Owner:  cpinkham
     Type:  defect                                     |      Status:  new     
 Priority:  minor                                      |   Milestone:          
Component:  mythtv                                     |     Version:  head    
 Severity:  low                                        |  
 Myth is failing to resolve relative symlinks.

 In my setup, I have my recordings stored in /media/record, and an NFS-
 mounted folder at /media/nfs to move them to when the main HD becomes to
 full. I create symlinks like:

   something.nuv -> ../nfs/something.nuv

 Here's the output of 'mythbackend -v file':

 2006-08-11 08:17:22.991 About to unlink/delete file:
 2006-08-11 08:17:22.999 Error deleting '../nfs/3332_20060518165900.nuv'
 could not open
                         eno: No such file or directory (2)
 2006-08-11 08:17:23.006 Delete Error
 '/media/record/3332_20060518165900.nuv' ->
                         eno: No such file or directory (2)
 2006-08-11 08:17:23.015 Error deleting file:
 /media/record/3332_20060518165900.nuv. Keeping metadata in database.

 This suggests that Myth is trying to delete the file using ".." in the
 path, which is incorrect because mythbackend was not started in
 /media/record. To confirm this theory, I stopped mythbackend, cd'd to
 /media/record, restarted it, and then deleted the recording. It worked.

Ticket URL: <http://svn.mythtv.org/trac/ticket/2211>
MythTV <http://www.mythtv.org/>

More information about the mythtv-commits mailing list