mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
21 lines
866 B
C#
21 lines
866 B
C#
using Emby.Common.Implementations.IO;
|
|
using MediaBrowser.Model.Logging;
|
|
using Mono.Unix.Native;
|
|
|
|
namespace Emby.Server.Mac.Native
|
|
{
|
|
public class MonoFileSystem : ManagedFileSystem
|
|
{
|
|
public MonoFileSystem(ILogger logger, bool supportsAsyncFileStreams, bool enableManagedInvalidFileNameChars) : base(logger, supportsAsyncFileStreams, enableManagedInvalidFileNameChars, false)
|
|
{
|
|
}
|
|
|
|
public override void SetExecutable(string path)
|
|
{
|
|
// Linux: File permission to 666, and user's execute bit
|
|
Logger.Info("Syscall.chmod {0} FilePermissions.DEFFILEMODE | FilePermissions.S_IRWXU | FilePermissions.S_IXGRP | FilePermissions.S_IXOTH", path);
|
|
|
|
Syscall.chmod(path, FilePermissions.DEFFILEMODE | FilePermissions.S_IRWXU | FilePermissions.S_IXGRP | FilePermissions.S_IXOTH);
|
|
}
|
|
}
|
|
}
|