diff options
author | Petr Uzel <petr.uzel@suse.cz> | 2010-10-06 16:03:34 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2010-10-07 10:24:57 +0200 |
commit | fe81c7d1b88713c4cf9edeaf6617952fa2be183d (patch) | |
tree | 87d39f352406ab9ffaa1a9ee1603d607c3bec249 /sys-utils | |
parent | c348d9346ae60b78a03d6dcd964e23fb40a625df (diff) | |
download | util-linux-old-fe81c7d1b88713c4cf9edeaf6617952fa2be183d.tar.gz |
lscpu: really use 'mode' argument in path_fopen()
Diffstat (limited to 'sys-utils')
-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; |