From 8f5a0d20d350734fd020dd3ec367e294ca89cf1f Mon Sep 17 00:00:00 2001 From: Dmitrii Kuvaiskii Date: Thu, 14 May 2020 18:46:16 -0700 Subject: [PATCH] [LibOS] Fix typo "hdl1" to "hdl2" in socketpair() --- LibOS/shim/src/sys/shim_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibOS/shim/src/sys/shim_pipe.c b/LibOS/shim/src/sys/shim_pipe.c index 4f1a53de..eba1953b 100644 --- a/LibOS/shim/src/sys/shim_pipe.c +++ b/LibOS/shim/src/sys/shim_pipe.c @@ -196,7 +196,7 @@ int shim_do_socketpair(int domain, int type, int protocol, int* sv) { hdl2->type = TYPE_SOCK; set_handle_fs(hdl2, &socket_builtin_fs); - hdl1->flags = O_WRONLY; + hdl2->flags = O_WRONLY; hdl2->acc_mode = MAY_READ | MAY_WRITE; sock2->domain = domain; sock2->sock_type = type & ~(SOCK_NONBLOCK | SOCK_CLOEXEC);