[banshee] [IO.Unix] Check for broken symlinks (bgo#614065)



commit 6243e79385970abe6c3f04e9c826b5836b56e52c
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date:   Tue Mar 30 11:20:57 2010 +1100

    [IO.Unix] Check for broken symlinks (bgo#614065)

 .../Banshee.Unix/Banshee.IO.Unix/Directory.cs      |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/Backends/Banshee.Unix/Banshee.IO.Unix/Directory.cs b/src/Backends/Banshee.Unix/Banshee.IO.Unix/Directory.cs
index 8749775..fdca55e 100644
--- a/src/Backends/Banshee.Unix/Banshee.IO.Unix/Directory.cs
+++ b/src/Backends/Banshee.Unix/Banshee.IO.Unix/Directory.cs
@@ -124,6 +124,9 @@ namespace Banshee.IO.Unix
                     if (info.FullName.StartsWith (target.FullName)) {
                         return null;
                     }
+                    if (!target.Exists) {
+                        return null;
+                    }
                     info = target;
                 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]