mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
Merge pull request #2493 from geogolem/develop
fix build problem on windows
This commit is contained in:
commit
8b201af053
@ -17,13 +17,13 @@ public class DiskProvider : DiskProviderBase
|
|||||||
private static readonly Logger Logger = NzbDroneLogger.GetLogger(typeof(DiskProvider));
|
private static readonly Logger Logger = NzbDroneLogger.GetLogger(typeof(DiskProvider));
|
||||||
|
|
||||||
private readonly IProcMountProvider _procMountProvider;
|
private readonly IProcMountProvider _procMountProvider;
|
||||||
private readonly ISymbolicLinkResolver _symLinkResolver;
|
private readonly ISymbLinkResolver _symLinkResolver;
|
||||||
|
|
||||||
// Mono supports sending -1 for a uint to indicate that the owner or group should not be set
|
// Mono supports sending -1 for a uint to indicate that the owner or group should not be set
|
||||||
// `unchecked((uint)-1)` and `uint.MaxValue` are the same thing.
|
// `unchecked((uint)-1)` and `uint.MaxValue` are the same thing.
|
||||||
private const uint UNCHANGED_ID = uint.MaxValue;
|
private const uint UNCHANGED_ID = uint.MaxValue;
|
||||||
|
|
||||||
public DiskProvider(IProcMountProvider procMountProvider, ISymbolicLinkResolver symLinkResolver)
|
public DiskProvider(IProcMountProvider procMountProvider, ISymbLinkResolver symLinkResolver)
|
||||||
{
|
{
|
||||||
_procMountProvider = procMountProvider;
|
_procMountProvider = procMountProvider;
|
||||||
_symLinkResolver = symLinkResolver;
|
_symLinkResolver = symLinkResolver;
|
||||||
@ -31,7 +31,7 @@ public DiskProvider(IProcMountProvider procMountProvider, ISymbolicLinkResolver
|
|||||||
|
|
||||||
public override IMount GetMount(string path)
|
public override IMount GetMount(string path)
|
||||||
{
|
{
|
||||||
path = _symLinkResolver.GetCompleteRealPath(path);
|
path = _symLinkResolver.GetCompletePath(path);
|
||||||
|
|
||||||
return base.GetMount(path);
|
return base.GetMount(path);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user