mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
hurd: Fix shutdown() errno on non-sock
This commit is contained in:
parent
ff806e9233
commit
6ab5980f4c
1 changed files with 5 additions and 0 deletions
|
@ -32,7 +32,12 @@ int
|
|||
shutdown (int fd, int how)
|
||||
{
|
||||
error_t err = HURD_DPORT_USE (fd, __socket_shutdown (port, how));
|
||||
|
||||
if (err == MIG_BAD_ID || err == EOPNOTSUPP)
|
||||
/* The file did not grok the ifsock protocol. */
|
||||
err = ENOTSOCK;
|
||||
if (err)
|
||||
return __hurd_dfail (fd, err);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue