mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
hurd: Do not take any flag from the CMSG_DATA
As fixed in 0822e3552a
("hurd: Don't pass FD_CLOEXEC in CMSG_DATA"),
senders currently don't have any flag to pass. We shouldn't blindly take
random flags that senders could be erroneously giving us.
This commit is contained in:
parent
5fa8945605
commit
323fe6a1a9
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue