summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-11-18 18:07:46 +0000
committerjbj <devnull@localhost>1999-11-18 18:07:46 +0000
commit1f6614e61efc520d2da0c09604d4ee1c06117073 (patch)
treeed7066a82ca608c08be5fbe194611486349eb1a5 /build.c
parent3a6118d4194d9672b24cd7b357e6191f4eb47fde (diff)
downloadrpm-1f6614e61efc520d2da0c09604d4ee1c06117073.tar.gz
The death of lib/ftp.c, merged into lib/rpmio.c.
Start composting the rpmio API. Preliminary (not working) support for HTTP PUT. build.c: Check fd for NULL and use Ferror() for Fopen return. build/parseSpec.c: ditto build/pack.c: Use fdGetFP() rather than fpio->ffileno(). build/parseSpec.c: ditto build/pack.c: Use Stat/Mkdir wrappers. build/pack.c: Do Fflush before fdDup so that writes can remain buffered. lib/install.c: ditto build/parsePrep.c: Skip over URL leadin when writing %prep scriptlet. lib/misc.c: Rewrite to use simpler urlPath(). Restore checks on local fs. lib/rpmchecksig.c: Open with "r+" rather than "w" to avoid truncation. lib/url.c: Do lazy malloc of u->buf in rpmio.c checkResponse(). lib/rpmio.c: Make persist/contentLength per-fd rather than per-url. lib/rpmio.c: Add wr_chunked method for HTTP PUT (still broken). lib/rpmio.c: ftpAbort() should use timedRead. lib/rpmio.c: Add Fflush(). lib/url.c: urlPath() should return something ("/") on url = NULL (paranoia). lib/url.c: urlSplit() should return something ("/") on url w/o path. CVS patchset: 3429 CVS date: 1999/11/18 18:07:46
Diffstat (limited to 'build.c')
-rw-r--r--build.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/build.c b/build.c
index 654f5b2f8..4eb626651 100644
--- a/build.c
+++ b/build.c
@@ -60,8 +60,7 @@ static int isSpecFile(const char *specfile)
int checking;
fd = Fopen(specfile, "r.ufdio");
- if (Ferror(fd)) {
- /* XXX Fstrerror */
+ if (fd == NULL || Ferror(fd)) {
fprintf(stderr, _("Unable to open spec file %s: %s\n"), specfile, Fstrerror(fd));
return 0;
}