diff options
author | jbj <devnull@localhost> | 1998-07-16 14:23:41 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1998-07-16 14:23:41 +0000 |
commit | 2089bf9496276647c8d596df1ecf21ed9c3abf81 (patch) | |
tree | e864bd632b3c40e4b7e4cdefc0f246ed16669d66 | |
parent | 94f5fbeec363059ca9eb986ee294ffcdf20bcb04 (diff) | |
download | librpm-tizen-2089bf9496276647c8d596df1ecf21ed9c3abf81.tar.gz librpm-tizen-2089bf9496276647c8d596df1ecf21ed9c3abf81.tar.bz2 librpm-tizen-2089bf9496276647c8d596df1ecf21ed9c3abf81.zip |
Bugfix from Fredrik Hubinette <hubbe@hubbe.net>.
CVS patchset: 2171
CVS date: 1998/07/16 14:23:41
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | build.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,5 @@ 2.5.3 -> 3.0 + - build.c: fix incorrect check for successful open - add new fully recursive macro.c - add {init,add,expand}Macro args everywhere (new macro.c compatibility) - create /usr/lib/rpm directory and move rpmrc et al there @@ -118,7 +118,7 @@ int build(char *arg, int buildAmount, char *passPhrase, return 1; } - if (!(fd = open(specfile, O_RDONLY))) { + if ((fd = open(specfile, O_RDONLY)) < 0) { fprintf(stderr, _("Unable to open spec file: %s\n"), specfile); return 1; } |