From 25b763a052f17e859eb8c4d001d43f1ec4581ba2 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 5416c28c0..78a075061 100644 --- a/src/NzbDrone.Mono/Interop/NativeMethods.cs +++ b/src/NzbDrone.Mono/Interop/NativeMethods.cs @@ -20,7 +20,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)