From 93f1250013c6c2533f840820a62a717aa33dbd88 Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Fri, 25 Sep 2015 09:36:34 +0100 Subject: lib: fix fopen mode in igt_debugfs_search Reported-by: Tvrtko Ursulin Signed-off-by: Thomas Wood --- lib/igt_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/igt_debugfs.c') 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) { -- cgit v1.2.3