aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2022-05-15 20:26:00 -0400
committerJoshua Boniface <joshua@boniface.me>2022-05-20 23:49:38 -0400
commit3515c76ca12717491e732edc1a21b1263674be2b (patch)
tree36e1061b9631a41975ef86275c273620505967f2
parentb611afe34c87fbdd46caa614277e2e899568d7e9 (diff)
Merge pull request #7724 from jtcasper/perms
(cherry picked from commit 884a59da07420708774eed25286950b14153c3dd) Signed-off-by: Joshua Boniface <joshua@boniface.me>
-rw-r--r--Emby.Server.Implementations/IO/ManagedFileSystem.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/IO/ManagedFileSystem.cs b/Emby.Server.Implementations/IO/ManagedFileSystem.cs
index 399ece7fd..120b1812a 100644
--- a/Emby.Server.Implementations/IO/ManagedFileSystem.cs
+++ b/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);
result.Exists = false;
}
+ catch (UnauthorizedAccessException ex)
+ {
+ _logger.LogError(ex, "Reading the file at {Path} failed due to a permissions exception.", fileInfo.FullName);
+ }
}
}