Skip to content

Commit 1bae8f7

Browse files
authored
Windows: Add PIPE_REJECT_REMOTE_CLIENTS flag to CreateNamedPipeW to explicitly disallow remote pipes (#137)
1 parent 8e5ddd2 commit 1bae8f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Subprocess/Configuration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ internal struct CreatedPipe: ~Copyable {
864864
return CreateNamedPipeW(
865865
pipeNameW,
866866
openMode,
867-
DWORD(PIPE_TYPE_BYTE | PIPE_READMODE_BYTE | PIPE_WAIT),
867+
DWORD(PIPE_TYPE_BYTE | PIPE_READMODE_BYTE | PIPE_WAIT | PIPE_REJECT_REMOTE_CLIENTS),
868868
1, // Max instance,
869869
DWORD(readBufferSize),
870870
DWORD(readBufferSize),

0 commit comments

Comments
 (0)