Message ID | 20230424221737.2113141-1-samuel.thibault@ens-lyon.org |
---|---|
State | New |
Headers | show |
Series | [hurd,commited] hurd: Do not take any flag from the CMSG_DATA | expand |
diff --git a/sysdeps/mach/hurd/recvmsg.c b/sysdeps/mach/hurd/recvmsg.c index e06b0fe3ba..4254dca627 100644 --- a/sysdeps/mach/hurd/recvmsg.c +++ b/sysdeps/mach/hurd/recvmsg.c @@ -201,8 +201,10 @@ __libc_recvmsg (int fd, struct msghdr *message, int flags) err = reauthenticate (ports[i], &newports[newfds]); if (err) goto cleanup; + /* We do not currently take any flag from the sender. */ fds[j] = opened_fds[newfds] = _hurd_intern_fd (newports[newfds], - fds[j] | fd_flags, + (fds[j] & 0) + | fd_flags, 0); if (fds[j] == -1) {