diff options
-rw-r--r-- | sys-utils/lscpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |