mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-17 10:58:58 -07:00
24 lines
851 B
C#
24 lines
851 B
C#
using Emby.Common.Implementations.IO;
|
|
using MediaBrowser.Model.Logging;
|
|
using MediaBrowser.Model.System;
|
|
using Mono.Unix.Native;
|
|
|
|
namespace MediaBrowser.Server.Mono.Native
|
|
{
|
|
public class MonoFileSystem : ManagedFileSystem
|
|
{
|
|
public MonoFileSystem(ILogger logger, IEnvironmentInfo environment, string tempPath)
|
|
: base(logger, environment, tempPath)
|
|
{
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|