Merge pull request #7495 from crobibero/fix-entrypoint

This commit is contained in:
Cody Robibero 2022-03-26 14:33:02 -06:00 committed by GitHub
commit 130c935bc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
{