diff --git a/src/NzbDrone.Mono/DiskProvider.cs b/src/NzbDrone.Mono/DiskProvider.cs index f09ae650e..cfbaa98c4 100644 --- a/src/NzbDrone.Mono/DiskProvider.cs +++ b/src/NzbDrone.Mono/DiskProvider.cs @@ -62,6 +62,12 @@ public override void SetPermissions(string path, string mask, string user, strin throw new LinuxPermissionsException("Error setting file permissions: " + error); } + if (String.IsNullOrWhiteSpace(user) || String.IsNullOrWhiteSpace(group)) + { + Logger.Trace("User or Group for chown not configured, skipping chown."); + return; + } + uint userId; uint groupId;