Bläddra i källkod

Merge pull request #7724 from jtcasper/perms

(cherry picked from commit 884a59da07420708774eed25286950b14153c3dd)
Signed-off-by: Joshua Boniface <joshua@boniface.me>
Joshua M. Boniface 3 år sedan
förälder
incheckning
3515c76ca1
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      Emby.Server.Implementations/IO/ManagedFileSystem.cs

+ 4 - 0
Emby.Server.Implementations/IO/ManagedFileSystem.cs

@@ -262,6 +262,10 @@ namespace Emby.Server.Implementations.IO
                             _logger.LogError(ex, "Reading the file size of the symlink at {Path} failed. Marking the file as not existing.", fileInfo.FullName);
                             _logger.LogError(ex, "Reading the file size of the symlink at {Path} failed. Marking the file as not existing.", fileInfo.FullName);
                             result.Exists = false;
                             result.Exists = false;
                         }
                         }
+                        catch (UnauthorizedAccessException ex)
+                        {
+                            _logger.LogError(ex, "Reading the file at {Path} failed due to a permissions exception.", fileInfo.FullName);
+                        }
                     }
                     }
                 }
                 }