s3:unix_msg: don't fill cmsg buffer in unix_dgram_send_job()
authorMichael Adam <obnox@samba.org>
Mon, 29 Sep 2014 09:08:53 +0000 (11:08 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 30 Sep 2014 14:36:10 +0000 (16:36 +0200)
commitd8af3e76a362328a854aeb83f8699443e77d2a8d
treeb2c6804795306054e66634dfe5e47d9d30a9cc12
parentb38ed7311af0862945e417b6f6350b7bc6b0be20
s3:unix_msg: don't fill cmsg buffer in unix_dgram_send_job()

Do this in queue_msg, instead.
This renders unix_dgram_send_job() as simple as it was before
we introduced fd-passing -- as it is intended.

This also changes struct unix_dgram_msg to not contain
the fd-array, but the correspondingly filled msghdr and cmsg buf.

Pair-Programmed-With: Volker Lendecke <vl@samba.org>
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Volker Lendecke <vl@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/lib/unix_msg/unix_msg.c