1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-02-27 16:22:37 +00:00

Do not try to chown when user or group is blank

This commit is contained in:
Mark McDowall 2014-01-31 08:11:19 -08:00
parent cf57188741
commit caf6f86573

View file

@ -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;