From 20894b40cf2a46efaf2b805a85ff1d56ebd23eea Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Wed, 3 Sep 2014 12:32:34 +0200 Subject: [PATCH] Fixed: No longer gives an Unauthorized error when calculating file hashes of UI resources. --- src/NzbDrone.Common/Disk/DiskProviderBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Common/Disk/DiskProviderBase.cs b/src/NzbDrone.Common/Disk/DiskProviderBase.cs index 74b0df219..3be7a3909 100644 --- a/src/NzbDrone.Common/Disk/DiskProviderBase.cs +++ b/src/NzbDrone.Common/Disk/DiskProviderBase.cs @@ -451,7 +451,7 @@ namespace NzbDrone.Common.Disk throw new FileNotFoundException("Unable to find file: " + path, path); } - return new FileStream(path, FileMode.Open); + return new FileStream(path, FileMode.Open, FileAccess.Read); } } }