mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-04 18:56:59 +00:00
win32: do not inherit file descriptors
This commit is contained in:
parent
d5e6ca1e4a
commit
1069ad3c54
@ -440,7 +440,14 @@ GIT_INLINE(int) open_once(
|
||||
DWORD attributes,
|
||||
int osf_flags)
|
||||
{
|
||||
HANDLE handle = CreateFileW(path, access, sharing, NULL,
|
||||
SECURITY_ATTRIBUTES security;
|
||||
int fd;
|
||||
|
||||
security.nLength = sizeof(SECURITY_ATTRIBUTES);
|
||||
security.lpSecurityDescriptor = NULL;
|
||||
security.bInheritHandle = 0;
|
||||
|
||||
HANDLE handle = CreateFileW(path, access, sharing, &security,
|
||||
creation_disposition, attributes, 0);
|
||||
|
||||
if (handle == INVALID_HANDLE_VALUE) {
|
||||
|
Loading…
Reference in New Issue
Block a user