git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6bdeb8
)
lib: We only need the fd-passing check once
author
Volker Lendecke
<vl@samba.org>
Sat, 26 Sep 2015 22:35:45 +0000
(
00:35
+0200)
committer
Karolin Seeger
<kseeger@samba.org>
Tue, 13 Oct 2015 07:23:24 +0000
(09:23 +0200)
unix_dgram_send will tell us as well
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11053
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
(cherry picked from commit
2c675aad40e3e0bb412f9fb8558de349ad62860a
)
source3/lib/unix_msg/unix_msg.c
patch
|
blob
|
history
diff --git
a/source3/lib/unix_msg/unix_msg.c
b/source3/lib/unix_msg/unix_msg.c
index 0baaa9d59d5a45f5a107087c3a4a402a768834ff..782748bdbc3e6492414e193f27cc5e5f683fe856 100644
(file)
--- a/
source3/lib/unix_msg/unix_msg.c
+++ b/
source3/lib/unix_msg/unix_msg.c
@@
-798,12
+798,6
@@
int unix_msg_send(struct unix_msg_ctx *ctx, const struct sockaddr_un *dst,
return EINVAL;
}
-#ifndef HAVE_STRUCT_MSGHDR_MSG_CONTROL
- if (num_fds > 0) {
- return ENOSYS;
- }
-#endif /* ! HAVE_STRUCT_MSGHDR_MSG_CONTROL */
-
if (num_fds > INT8_MAX) {
return EINVAL;
}