diff options
| author | Stefan Metzmacher <metze@samba.org> | 2014-06-24 07:39:05 +0200 |
|---|---|---|
| committer | Michael Adam <obnox@samba.org> | 2014-09-24 08:44:11 +0200 |
| commit | 64d140197e7d668a773ac2f85c9cabd8c59e4804 (patch) | |
| tree | 6f26ff1c365c33957508891b0461d53676e5e0f2 /source3/lib/dbwrap | |
| parent | 1b35d2ed631631f470dc5a7cff54068a832bfafc (diff) | |
| download | samba-64d140197e7d668a773ac2f85c9cabd8c59e4804.tar.gz samba-64d140197e7d668a773ac2f85c9cabd8c59e4804.tar.xz samba-64d140197e7d668a773ac2f85c9cabd8c59e4804.zip | |
s3:messaging: make it possible to receive a fd array from another process
In order to receive the fd array the caller needs to use
messaging_filtered_read_send/recv(). For all higher level
methods we silently close/ignore the fd array.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/lib/dbwrap')
| -rw-r--r-- | source3/lib/dbwrap/dbwrap_watch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/dbwrap/dbwrap_watch.c b/source3/lib/dbwrap/dbwrap_watch.c index a5f1ebd5bf..9ff8fc24b4 100644 --- a/source3/lib/dbwrap/dbwrap_watch.c +++ b/source3/lib/dbwrap/dbwrap_watch.c @@ -299,6 +299,9 @@ static bool dbwrap_record_watch_filter(struct messaging_rec *rec, if (rec->msg_type != MSG_DBWRAP_MODIFIED) { return false; } + if (rec->num_fds != 0) { + return false; + } if (rec->buf.length != state->w_key.dsize) { return false; } |
