diff options
| author | Cody Robibero <cody@robibe.ro> | 2022-03-26 07:40:26 -0600 |
|---|---|---|
| committer | Cody Robibero <cody@robibe.ro> | 2022-03-26 12:14:09 -0600 |
| commit | ac33adf2197773777e5decacc822c7efb9f26b2c (patch) | |
| tree | 6aa711c0f6e695c7e327d2ed885026452c536c0f | |
| parent | 4fa7f49ffc6cec2a5be3cf9e5ff0fb727815e6b1 (diff) | |
Learn how DllImport works before making changes
| -rw-r--r-- | Jellyfin.Server/Program.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs index d699102ff..1323d8a48 100644 --- a/Jellyfin.Server/Program.cs +++ b/Jellyfin.Server/Program.cs @@ -687,10 +687,12 @@ namespace Jellyfin.Server if (!string.IsNullOrEmpty(socketPerms)) { + #pragma warning disable SA1300 // Entrypoint is case sensitive. [DllImport("libc")] - static extern int Chmod(string pathname, int mode); + static extern int chmod(string pathname, int mode); + #pragma warning restore SA1300 - var exitCode = Chmod(socketPath, Convert.ToInt32(socketPerms, 8)); + var exitCode = chmod(socketPath, Convert.ToInt32(socketPerms, 8)); if (exitCode < 0) { |
