XBMC Community Forum  

Go Back   XBMC Community Forum > Help and Support > XBMC General Help and Support > XBMC for Mac and AppleTV Specific Support

XBMC for Mac and AppleTV Specific Support Need help with XBMC for Mac or Apple TV, or think you've found a bug? Discuss it here.

Reply
 
Thread Tools Search this Thread Display Modes
Old 2008-02-25, 04:11   #1
danielsson
Junior Member
 
Join Date: Feb 2008
Location: Sweden
Posts: 5
danielsson is on a distinguished road
Default Bug: Broken symlinks

When browsing files in a directory containing a broken symlink, the following files doesn't show.
OSX's "Alias" doesn't seam to be affected.
Possibly this is a *nix-problem...

Thank's for the good job!
danielsson is offline   Reply With Quote
Old 2008-02-25, 09:59   #2
topfs2
Team-XBMC Developer
 
topfs2's Avatar
 
Join Date: Dec 2007
Location: Sweden
Posts: 1,859
topfs2 is an unknown quantity at this point
Default

How do you mean? if we have a nbr of files in a folder say a - d and a symlinked e.
When "e" is broken a - d shows but not e?
Or does some of the other ones also dissapear?

if the latter could you post an easy way to reproduce.
topfs2 is offline   Reply With Quote
Old 2008-02-25, 13:56   #3
danielsson
Junior Member
 
Join Date: Feb 2008
Location: Sweden
Posts: 5
danielsson is on a distinguished road
Default

My english isn't very good, so I'll try to explan it in "pictures"
Like this everything looks as it's supposed to in XBMC:
Code:
stewie:test twan$ ls -l
total 8
-rw-r--r--  1 twan  staff  0 Feb 25 12:30 a
-rw-r--r--  1 twan  staff  0 Feb 25 12:30 b
lrwxr-xr-x  1 twan  staff  1 Feb 25 12:31 c -> e
-rw-r--r--  1 twan  staff  0 Feb 25 12:30 d
-rw-r--r--  1 twan  staff  0 Feb 25 12:30 e
Then I remove the source-file (e):
Code:
stewie:test twan$ rm e
stewie:test twan$ ls -l
total 8
-rw-r--r--  1 twan  staff  0 Feb 25 12:30 a
-rw-r--r--  1 twan  staff  0 Feb 25 12:30 b
lrwxr-xr-x  1 twan  staff  1 Feb 25 12:31 c -> e
-rw-r--r--  1 twan  staff  0 Feb 25 12:30 d
And XBMC don't wanna play
danielsson is offline   Reply With Quote
Old 2008-02-25, 14:12   #4
topfs2
Team-XBMC Developer
 
topfs2's Avatar
 
Join Date: Dec 2007
Location: Sweden
Posts: 1,859
topfs2 is an unknown quantity at this point
Default

But if you remove the source, it doesn't link to anything. The if this is a movie it wouldn't play because it isn't on the HD anymore...

I still haven't gotten why it should show it. when a symlink gets broken it's usually because linux can't access the file, and if linux can't acess it then XBMC wouldn't either. Thus the file wouldn't play anyway

At me when the symlink works I get
a
b
c
d
e
Inside xbmc, if I delete e only
a
b
c

Gets shown, these are the only files which actually work.

Does only d show at you when you delete e? even if a b c are still present?
__________________
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


topfs2 is offline   Reply With Quote
Old 2008-02-25, 14:40   #5
danielsson
Junior Member
 
Join Date: Feb 2008
Location: Sweden
Posts: 5
danielsson is on a distinguished road
Default

Quote:
Originally Posted by Topfs2 View Post
Does only d show at you when you delete e? even if a b c are still present?
Exactly. Only the d-file is shown in my case inside xbmc.
Code:
stewie:test twan$ ls -l
total 8
-rw-r--r--  1 twan  staff  0 Feb 25 12:30 a
-rw-r--r--  1 twan  staff  0 Feb 25 12:30 b
lrwxr-xr-x  1 twan  staff  1 Feb 25 12:31 c -> e
-rw-r--r--  1 twan  staff  0 Feb 25 12:30 d
It doesn't matter if the symlink pointed at a folder or a regular file.

And of course, if the source is removed the symlink doesn't work , but the rest of the files (and the symlink) should still be shown in xbmc's file-list.

And note again: I run XBMC in OSX, but this thred was moved here by some admin.
danielsson is offline   Reply With Quote
Old 2008-02-25, 14:47   #6
danielsson
Junior Member
 
Join Date: Feb 2008
Location: Sweden
Posts: 5
danielsson is on a distinguished road
Default

Hmm, isn't it possible to edit your own posts in this forum?

I added another file (f), and now both d and f shows up in xbmc.
Code:
stewie:test twan$ ls -l
total 8
-rw-r--r--  1 twan  staff  0 Feb 25 12:30 a
-rw-r--r--  1 twan  staff  0 Feb 25 12:30 b
lrwxr-xr-x  1 twan  staff  1 Feb 25 12:31 c -> e
-rw-r--r--  1 twan  staff  0 Feb 25 12:30 d
-rw-r--r--  1 twan  staff  0 Feb 25 13:42 f
danielsson is offline   Reply With Quote
Old 2008-02-25, 17:33   #7
topfs2
Team-XBMC Developer
 
topfs2's Avatar
 
Join Date: Dec 2007
Location: Sweden
Posts: 1,859
topfs2 is an unknown quantity at this point
Default

I moved you back because I don't run XBMC osx but it is a bug if it does what you are describing. Works in linux though.
__________________
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


topfs2 is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 20:33.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project