libblkid-tiny: fix invalid open syscall return check
authorDaniel Danzberger <daniel@dd-wrt.com>
Mon, 2 Aug 2021 09:50:00 +0000 (11:50 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 3 Aug 2021 20:38:32 +0000 (21:38 +0100)
commit141ac851aee06512934ba6fbd90af78066593844
treee6aabc5550d6a865fdb0e407a1da3d5a9004bbdf
parentb7bf18563769e26d24cdace973d09f9c438bbd34
libblkid-tiny: fix invalid open syscall return check

open() returns -1 on error, not 0 (stdin).

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
libblkid-tiny/libblkid-tiny.c