summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewt <devnull@localhost>1996-03-15 23:02:44 +0000
committerewt <devnull@localhost>1996-03-15 23:02:44 +0000
commitf753e724e6c1b8d19fbf3b5a90321dbd17abd1a1 (patch)
treed32c3392349d28620c10265ef3a98cd6ef2695d1
parent998c552a7ea39b2d753413b5285469b488a0b254 (diff)
downloadrpm-f753e724e6c1b8d19fbf3b5a90321dbd17abd1a1.tar.gz
rpm-f753e724e6c1b8d19fbf3b5a90321dbd17abd1a1.tar.bz2
rpm-f753e724e6c1b8d19fbf3b5a90321dbd17abd1a1.zip
ftp's now returns an error code when it times out while getting a
package CVS patchset: 477 CVS date: 1996/03/15 23:02:44
-rw-r--r--ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftp.c b/ftp.c
index dbf22eedf..716fc262f 100644
--- a/ftp.c
+++ b/ftp.c
@@ -227,7 +227,7 @@ int ftpReadData(int sock, int out) {
rc = select(sock + 1, &readSet, &emptySet, &emptySet, &timeout);
if (rc == 0) {
close(sock);
- return 0;
+ return 1;
}
if (rc < 0) {
close(sock);