Bug: Broken symlinks

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
danielsson Offline
Junior Member
Posts: 5
Joined: Feb 2008
Reputation: 0
Location: Sweden
Post: #1
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!
find quote
topfs2 Online
Team-Kodi Developer
Posts: 4,251
Joined: Dec 2007
Reputation: 15
Post: #2
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.
find quote
danielsson Offline
Junior Member
Posts: 5
Joined: Feb 2008
Reputation: 0
Location: Sweden
Post: #3
My english isn't very good, so I'll try to explan it in "pictures" Smile
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 Sad
[Image: xbmc-filemanager.png]
find quote
topfs2 Online
Team-Kodi Developer
Posts: 4,251
Joined: Dec 2007
Reputation: 15
Post: #4
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.

[Image: badge.gif]

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
find quote
danielsson Offline
Junior Member
Posts: 5
Joined: Feb 2008
Reputation: 0
Location: Sweden
Post: #5
Topfs2 Wrote: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 Smile, 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.
find quote
danielsson Offline
Junior Member
Posts: 5
Joined: Feb 2008
Reputation: 0
Location: Sweden
Post: #6
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
find quote
topfs2 Online
Team-Kodi Developer
Posts: 4,251
Joined: Dec 2007
Reputation: 15
Post: #7
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.

[Image: badge.gif]

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
find quote