diff options
author | Volker Lendecke <vl@samba.org> | 2009-01-31 14:33:38 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-01-31 17:50:18 +0100 |
commit | e8b2b46caeff185faef5491cbbeaf799bcd1b1ec (patch) | |
tree | ad12bd41b833126278869e633dad16829fc44569 /source3/rpc_server | |
parent | c2fe28ba598e7db2915b3bb5e7b8d281361a4c95 (diff) | |
download | samba-e8b2b46caeff185faef5491cbbeaf799bcd1b1ec.tar.gz samba-e8b2b46caeff185faef5491cbbeaf799bcd1b1ec.tar.bz2 samba-e8b2b46caeff185faef5491cbbeaf799bcd1b1ec.zip |
Make-np_write-handle-0-byte-writes-as-NT_STATUS_OK
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_pipe_hnd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c index 6e2bfb8b4a..c844f6486e 100644 --- a/source3/rpc_server/srv_pipe_hnd.c +++ b/source3/rpc_server/srv_pipe_hnd.c @@ -1131,6 +1131,12 @@ struct async_req *np_write_send(TALLOC_CTX *mem_ctx, struct event_context *ev, return NULL; } + if (len == 0) { + state->nwritten = 0; + status = NT_STATUS_OK; + goto post_status; + } + if (handle->type == FAKE_FILE_TYPE_NAMED_PIPE) { struct pipes_struct *p = talloc_get_type_abort( handle->private_data, struct pipes_struct); |