From ff3e53a71bd12175140d69e592346658e18d3123 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Mon, 22 Jun 2020 15:41:53 +0200 Subject: [PATCH] Fixed: Failing file copy when running in docker on synology with btrfs --- src/NzbDrone.Mono/Interop/NativeMethods.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Mono/Interop/NativeMethods.cs b/src/NzbDrone.Mono/Interop/NativeMethods.cs index a92c78a2f..25a0fc7dc 100644 --- a/src/NzbDrone.Mono/Interop/NativeMethods.cs +++ b/src/NzbDrone.Mono/Interop/NativeMethods.cs @@ -17,7 +17,7 @@ namespace NzbDrone.Mono.Interop public static SafeUnixHandle open(string pathname, OpenFlags flags) { - return new SafeUnixHandle(Syscall.open(pathname, flags)); + return new SafeUnixHandle(Syscall.open(pathname, flags, FilePermissions.DEFFILEMODE)); } internal static int clone_file(SafeUnixHandle link_fd, SafeUnixHandle src_fd)