summaryrefslogtreecommitdiffstats
path: root/misc-utils/fincore.c
diff options
context:
space:
mode:
authorKarel Zak2017-03-23 15:28:05 +0100
committerKarel Zak2017-03-23 15:28:05 +0100
commitcff1c113fe0686d0524a4a70973f2345fcc4c7c9 (patch)
treef3760ce5f678478ee503ff452c9e1bdb1ba11049 /misc-utils/fincore.c
parentfincore: add --raw and --json (diff)
downloadkernel-qcow2-util-linux-cff1c113fe0686d0524a4a70973f2345fcc4c7c9.tar.gz
kernel-qcow2-util-linux-cff1c113fe0686d0524a4a70973f2345fcc4c7c9.tar.xz
kernel-qcow2-util-linux-cff1c113fe0686d0524a4a70973f2345fcc4c7c9.zip
fincore: fix error on open()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/fincore.c')
-rw-r--r--misc-utils/fincore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/fincore.c b/misc-utils/fincore.c
index ddb2bb267..a2fc1d111 100644
--- a/misc-utils/fincore.c
+++ b/misc-utils/fincore.c
@@ -221,7 +221,7 @@ static int fincore_name(struct fincore_control *ctl,
if ((fd = open (name, O_RDONLY)) < 0) {
warn(_("failed to open: %s"), name);
- return 0;
+ return -errno;
}
if (fstat (fd, sb) < 0) {