aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Transfers/Downloads/DownloadService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Transfers/Downloads/DownloadService.cs b/src/slskd/Transfers/Downloads/DownloadService.cs
index 8d06fcec..f848928f 100644
--- a/src/slskd/Transfers/Downloads/DownloadService.cs
+++ b/src/slskd/Transfers/Downloads/DownloadService.cs
@@ -296,7 +296,7 @@ namespace slskd.Transfers.Downloads
Access = System.IO.FileAccess.Write,
Mode = System.IO.FileMode.Create, // overwrites file if it exists
Share = System.IO.FileShare.None, // exclusive access for the duration of the download
- UnixCreateMode = System.IO.UnixFileMode.None, // todo: replace with options
+ UnixCreateMode = OptionsMonitor.CurrentValue.Files.Permissions.ToUnixFileMode(),
})),
size: file.Size,
startOffset: 0,