]> err.no Git - util-linux/commitdiff
lscpu: really use 'mode' argument in path_fopen()
authorPetr Uzel <petr.uzel@suse.cz>
Wed, 6 Oct 2010 14:03:34 +0000 (16:03 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 7 Oct 2010 08:24:57 +0000 (10:24 +0200)
sys-utils/lscpu.c

index 027a29822f87216a6ebcfaeb75da80fd1f25cb15..0d0760f7c7ec93daac4f92b839b2eafb98616916 100644 (file)
@@ -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;