libfstools: handle open() return value properly in F2FS check
authorDaniel Golle <daniel@makrotopia.org>
Mon, 23 Aug 2021 16:55:31 +0000 (17:55 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 25 Aug 2021 21:46:16 +0000 (22:46 +0100)
commit50e6b20878cea96b7c4bc924c686ebee153874d5
tree6199ade935bbd3ca739a76eb4f93a7a7a835dae7
parent2e3aca299ea7bbe74f219860510c4b34e77c7aa4
libfstools: handle open() return value properly in F2FS check

Coverity CID: 1490101 Argument cannot be negative

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libfstools/common.c