for condition this is all right, POSIX
requires that two different error codes are returned: EINVAL if already
connected and EDESTADDRREQ if not bound.
Reference:
http://pubs.opengroup.org/onlinepubs/009695399/functions/listen.html
Signed-off-by: Ed Schouten
---
net/unix/af_unix.c | 4 ++--
1
ng a patch to the Linux kernel, so if
there's anything wrong with the way I submitted these patches, just let
me know.
Thanks,
Ed
Ed Schouten (3):
Make listen() on an unbound UNIX socket return EDESTADDRREQ.
Let open() on a UNIX socket return EOPNOTSUPP.
Return ENOTCONN when trying
-off-by: Ed Schouten
---
net/unix/af_unix.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index d810815..824dd63 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -2283,7 +2283,7 @@ static int unix_stream_read_generic(struct
ences:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html
http://austingroupbugs.net/view.php?id=943
Signed-off-by: Ed Schouten
---
fs/inode.c | 13 -
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/fs/inode.c b/fs/inode.c
index 69b8b52..6e63ca7 100644
---