Commit 48d77840 authored by Niels Möller's avatar Niels Möller

(spawn_helper): Use SOCK_DGRAM for the

pty-helper socketpair.

Rev: src/lshd-userauth.c:1.6
parent 5b7f9a9a
......@@ -466,7 +466,7 @@ spawn_helper(const char *program, uid_t uid, gid_t gid)
/* pipe[0] for the child, pipe[1] for the parent */
int pipe[2];
if (socketpair(AF_UNIX, SOCK_STREAM, 0, pipe) < 0)
if (socketpair(AF_UNIX, SOCK_DGRAM, 0, pipe) < 0)
{
werror("socketpair failed: %e.\n", errno);
return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment