| Index: mojo/edk/system/core.cc
|
| diff --git a/mojo/edk/system/core.cc b/mojo/edk/system/core.cc
|
| index 1f2ba7e97dc796f15e7521c21414a76d257b18df..a8c2007dba6610e83724ac33d49b944c38bcc29e 100644
|
| --- a/mojo/edk/system/core.cc
|
| +++ b/mojo/edk/system/core.cc
|
| @@ -441,7 +441,7 @@ MojoResult Core::SetDataPipeProducerOptions(
|
| UserPointer<const MojoDataPipeProducerOptions> options) {
|
| RefPtr<Dispatcher> dispatcher;
|
| MojoResult result = GetDispatcherAndCheckRights(
|
| - data_pipe_producer_handle, MOJO_HANDLE_RIGHT_WRITE,
|
| + data_pipe_producer_handle, MOJO_HANDLE_RIGHT_SET_OPTIONS,
|
| EntrypointClass::DATA_PIPE_PRODUCER, &dispatcher);
|
| if (result != MOJO_RESULT_OK)
|
| return result;
|
| @@ -455,7 +455,7 @@ MojoResult Core::GetDataPipeProducerOptions(
|
| uint32_t options_num_bytes) {
|
| RefPtr<Dispatcher> dispatcher;
|
| MojoResult result = GetDispatcherAndCheckRights(
|
| - data_pipe_producer_handle, MOJO_HANDLE_RIGHT_READ,
|
| + data_pipe_producer_handle, MOJO_HANDLE_RIGHT_GET_OPTIONS,
|
| EntrypointClass::DATA_PIPE_PRODUCER, &dispatcher);
|
| if (result != MOJO_RESULT_OK)
|
| return result;
|
| @@ -508,7 +508,7 @@ MojoResult Core::SetDataPipeConsumerOptions(
|
| UserPointer<const MojoDataPipeConsumerOptions> options) {
|
| RefPtr<Dispatcher> dispatcher;
|
| MojoResult result = GetDispatcherAndCheckRights(
|
| - data_pipe_consumer_handle, MOJO_HANDLE_RIGHT_WRITE,
|
| + data_pipe_consumer_handle, MOJO_HANDLE_RIGHT_SET_OPTIONS,
|
| EntrypointClass::DATA_PIPE_CONSUMER, &dispatcher);
|
| if (result != MOJO_RESULT_OK)
|
| return result;
|
| @@ -522,7 +522,7 @@ MojoResult Core::GetDataPipeConsumerOptions(
|
| uint32_t options_num_bytes) {
|
| RefPtr<Dispatcher> dispatcher;
|
| MojoResult result = GetDispatcherAndCheckRights(
|
| - data_pipe_consumer_handle, MOJO_HANDLE_RIGHT_READ,
|
| + data_pipe_consumer_handle, MOJO_HANDLE_RIGHT_GET_OPTIONS,
|
| EntrypointClass::DATA_PIPE_CONSUMER, &dispatcher);
|
| if (result != MOJO_RESULT_OK)
|
| return result;
|
|
|