From f970eb7d2a4d60d013b0d0de93d90fe2fe4ad93c Mon Sep 17 00:00:00 2001 From: Shashank Kumar <75466339+datacore-skumar@users.noreply.github.com> Date: Wed, 28 Apr 2021 17:40:56 +0530 Subject: [PATCH] share flag fixed for CreateFile (#19) --- lib/libspl/os/windows/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libspl/os/windows/posix.c b/lib/libspl/os/windows/posix.c index f1687551a4a2..ef312fc309d0 100644 --- a/lib/libspl/os/windows/posix.c +++ b/lib/libspl/os/windows/posix.c @@ -865,7 +865,7 @@ wosix_open(const char *inpath, int oflag, ...) HANDLE h; DWORD mode = GENERIC_READ; // RDONLY=0, WRONLY=1, RDWR=2; DWORD how = OPEN_EXISTING; - DWORD share = FILE_SHARE_READ; + DWORD share = FILE_SHARE_READ | FILE_SHARE_WRITE; char otherpath[MAXPATHLEN]; char *path = inpath;