From fe81c7d1b88713c4cf9edeaf6617952fa2be183d Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Wed, 6 Oct 2010 16:03:34 +0200 Subject: [PATCH] lscpu: really use 'mode' argument in path_fopen() --- sys-utils/lscpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index 027a2982..0d0760f7 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -173,7 +173,7 @@ path_fopen(const char *mode, int exit_on_error, const char *path, ...) va_list ap; va_start(ap, path); - fd = path_vfopen("r", exit_on_error, path, ap); + fd = path_vfopen(mode, exit_on_error, path, ap); va_end(ap); return fd; -- 2.39.5