From d7b6f1973af6171e7dde50d6a6aa6beafd3162b7 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 18 Apr 2011 12:34:29 -0400 Subject: [PATCH] Update PREAD fix Signed-off-by: Mathieu Desnoyers --- ltt-debugfs-abi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ltt-debugfs-abi.c b/ltt-debugfs-abi.c index f5ead59e..41774e43 100644 --- a/ltt-debugfs-abi.c +++ b/ltt-debugfs-abi.c @@ -245,7 +245,7 @@ int lttng_abi_open_stream(struct file *channel_file) * FMODE_LSEEK, FMODE_PREAD nor FMODE_PWRITE. We need to read from this * file descriptor, so we set FMODE_PREAD here. */ - stream_file->f_mode = FMODE_PREAD; + stream_file->f_mode |= FMODE_PREAD; fd_install(stream_fd, stream_file); /* * The stream holds a reference to the channel within the generic ring -- 2.34.1