Fixed: Failing file copy when running in docker on synology with btrfs

Co-Authored-By: Taloth <Taloth@users.noreply.github.com>
This commit is contained in:
Qstick 2020-12-13 02:29:01 -05:00
parent c92b254bb7
commit 5a15565d2b

View file

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