summaryrefslogtreecommitdiffstats
path: root/loader2
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2005-03-02 01:27:17 +0000
committerPeter Jones <pjones@redhat.com>2005-03-02 01:27:17 +0000
commitdbd6a4e1c3b3a218dafbf1845a82c86ce339c5fd (patch)
tree7819f476cc47896a6271dd67a6356cce790af5ac /loader2
parent8df20f1343daaa735e8166306c3371b02627bbe1 (diff)
downloadanaconda-dbd6a4e1c3b3a218dafbf1845a82c86ce339c5fd.tar.gz
anaconda-dbd6a4e1c3b3a218dafbf1845a82c86ce339c5fd.tar.xz
anaconda-dbd6a4e1c3b3a218dafbf1845a82c86ce339c5fd.zip
catch return from write()
Diffstat (limited to 'loader2')
-rw-r--r--loader2/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader2/ftp.c b/loader2/ftp.c
index 9227a5c68..aae7ffd25 100644
--- a/loader2/ftp.c
+++ b/loader2/ftp.c
@@ -486,7 +486,7 @@ int httpGetFileDesc(char * hostname, int port, char * remotename, char *extraHea
buf = alloca(strlen(remotename) + strlen(realhost) + strlen(hstr) + 25);
sprintf(buf, "GET %s HTTP/1.0\r\nHost: %s\r\n%s\r\n", remotename, realhost, hstr);
- write(sock, buf, strlen(buf));
+ rc = write(sock, buf, strlen(buf));
/* This is fun; read the response a character at a time until we: