summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1998-07-16 14:23:41 +0000
committerjbj <devnull@localhost>1998-07-16 14:23:41 +0000
commit2089bf9496276647c8d596df1ecf21ed9c3abf81 (patch)
treee864bd632b3c40e4b7e4cdefc0f246ed16669d66
parent94f5fbeec363059ca9eb986ee294ffcdf20bcb04 (diff)
downloadlibrpm-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--CHANGES1
-rw-r--r--build.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 04c548fcc..92787a020 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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
diff --git a/build.c b/build.c
index 33bf2d7bb..f60cf1488 100644
--- a/build.c
+++ b/build.c
@@ -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;
}