diff options
author | Thomas Wood <thomas.wood@intel.com> | 2015-09-25 09:36:34 +0100 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2015-09-25 09:42:42 +0100 |
commit | 93f1250013c6c2533f840820a62a717aa33dbd88 (patch) | |
tree | a654d98250f242ba4c71dc147141f05740d8be97 /lib | |
parent | 6c89204da77a721c9f6c2c77908ca9502a246df8 (diff) |
lib: fix fopen mode in igt_debugfs_search
Reported-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/igt_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c index c603369e..2c3b1cfe 100644 --- a/lib/igt_debugfs.c +++ b/lib/igt_debugfs.c @@ -228,7 +228,7 @@ bool igt_debugfs_search(const char *filename, const char *substring) char *line = NULL; bool matched = false; - file = igt_debugfs_fopen(filename, O_RDONLY); + file = igt_debugfs_fopen(filename, "r"); igt_assert(file); while (getline(&line, &n, file) >= 0) { |