[mythtv-users] Problem with "Follow symbolic links when deleting files"

Michael T. Dean mtdean at thirdcontact.com
Sat Nov 17 16:44:15 UTC 2007

On 11/16/2007 11:13 PM, moodyjunk at frontiernet.net wrote:
>  From my /mythtv recordings directory I setup symbolic links for some  
> files pointing to a child directory (/mythtv/movies):
>     /mythtv# ln -s movies/<filename>.mpg
> Watching of the recording from the GUI works fine along with the  
> preview window.  However, when I delete it from the GUI after viewing,  
> the symlink is removed, but the recording file remains.  I do have  
> "Follow symbolic links when deleting files" checked.  I viewed  
> /var/log/mythtv/mythbackend.log and found:
> Error deleting '/mythtv/1135_20071007130000.mpg' ->  
> 'movies/1135_20071007130000.mpg': No such file or directory
> If I change the symlink to specify the full path
>     /mythtv# ln -si /mythtv/movies/<filename>.mpg
> the delete works fine.
> I think this is a bug.  If the symlink works for viewing, it should  
> also work for deleting.  I hope the developers are watching :-)

Not a bug.  Designed that way on purpose for better security.  Besides,
symlinks are completely unnecessary in trunk (and will be in 0.21) due
to Storage Groups.

Just specify links with absolute paths (as the myth_archive_job.pl
script does).


More information about the mythtv-users mailing list