aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2024-05-12 22:31:10 -0500
committerJP Dillingham <jpdillingham@gmail.com>2024-05-12 22:31:10 -0500
commitad43047f4f57a26d0ab5225f22b2a78ab491a12c (patch)
treeb13c1cb5c5457828f70cb4b591a7efdee5b6a133 /src
parentac66a8f6fbe9d49d4ed1f6cc8808ee75f92e62d0 (diff)
downloadslskd-ad43047f4f57a26d0ab5225f22b2a78ab491a12c.tar.gz
send correct perms
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,