diff options
author | Fabian Groffen <grobian@gentoo.org> | 2020-01-19 17:40:24 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2020-01-19 17:40:24 +0100 |
commit | 68e6854a19a5a42b7b1ac62e6ea3b96baaaf5699 (patch) | |
tree | 1e9fda8f9e27d4235bf2a46d8b75a8d97e9be2e7 /qmanifest.c | |
parent | qmanifest: fix Coverity 206559 Resource leak (diff) | |
download | portage-utils-68e6854a19a5a42b7b1ac62e6ea3b96baaaf5699.tar.gz portage-utils-68e6854a19a5a42b7b1ac62e6ea3b96baaaf5699.tar.bz2 portage-utils-68e6854a19a5a42b7b1ac62e6ea3b96baaaf5699.zip |
qmanifest: fix Coverity 206557 Argument cannot be negative
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'qmanifest.c')
-rw-r--r-- | qmanifest.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qmanifest.c b/qmanifest.c index de4bf9b0..bd04b96b 100644 --- a/qmanifest.c +++ b/qmanifest.c @@ -1770,8 +1770,10 @@ qmanifest_main(int argc, char **argv) } } - if ((curdirfd = open(".", O_RDONLY)) < 0) + if ((curdirfd = open(".", O_RDONLY)) < 0) { warn("cannot open current directory?!? %s\n", strerror(errno)); + return EXIT_FAILURE; + } ret = EXIT_SUCCESS; argc -= optind; |