diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-05-17 15:39:26 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-05-17 15:39:26 -0500 |
| commit | 08f4afda39774ab4872a6699b50ca80589938caa (patch) | |
| tree | 8cc1ce79547391b0bbec1d571bd488a9c4c1e2cc | |
| parent | 29364a5a9cef23cee399e31c2d81c7239ad324da (diff) | |
| download | slskd-08f4afda39774ab4872a6699b50ca80589938caa.tar.gz | |
mark directories as non traversing
| -rw-r--r-- | src/slskd/Core/Options.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 51b3cab1..a50e3f70 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -768,6 +768,7 @@ namespace slskd [EnvironmentVariable("INCOMPLETE_DIR")] [Description("path where incomplete downloads are saved")] [AbsolutePath] + [NonTraversingPath] [DirectoryExists(ensureWriteable: true)] [RequiresRestart] public string Incomplete { get; init; } = Program.DefaultIncompleteDirectory; @@ -779,6 +780,7 @@ namespace slskd [EnvironmentVariable("DOWNLOADS_DIR")] [Description("path where downloaded files are saved")] [AbsolutePath] + [NonTraversingPath] [DirectoryExists(ensureWriteable: true)] [RequiresRestart] public string Downloads { get; init; } = Program.DefaultDownloadsDirectory; @@ -2015,6 +2017,7 @@ namespace slskd [EnvironmentVariable("HTTP_SOCKET")] [Description("HTTP listen unix domain socket (UDS) path for web UI")] [AbsolutePath] + [NonTraversingPath] [RequiresRestart] public string Socket { get; init; } |
