mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
Do not try to chown when user or group is blank
This commit is contained in:
parent
cf57188741
commit
caf6f86573
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user