secur32: Set the close on exec flag on the ntlm_auth pipes.
This commit is contained in:
parent
df13cee288
commit
4cda5ca96c
@ -117,8 +117,10 @@ SECURITY_STATUS fork_helper(PNegoHelper *new_helper, const char *prog,
|
|||||||
helper->session_key = NULL;
|
helper->session_key = NULL;
|
||||||
helper->neg_flags = 0;
|
helper->neg_flags = 0;
|
||||||
helper->pipe_in = pipe_in[0];
|
helper->pipe_in = pipe_in[0];
|
||||||
|
fcntl( pipe_in[0], F_SETFD, 1 );
|
||||||
close(pipe_in[1]);
|
close(pipe_in[1]);
|
||||||
helper->pipe_out = pipe_out[1];
|
helper->pipe_out = pipe_out[1];
|
||||||
|
fcntl( pipe_out[1], F_SETFD, 1 );
|
||||||
close(pipe_out[0]);
|
close(pipe_out[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user