From: Petr Uzel Date: Wed, 6 Oct 2010 14:03:34 +0000 (+0200) Subject: lscpu: really use 'mode' argument in path_fopen() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe81c7d1b88713c4cf9edeaf6617952fa2be183d;p=util-linux lscpu: really use 'mode' argument in path_fopen() --- 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;