← Commit list

0f18271a8

Glenn L McGrath
Glenn L McGrath
2002-12-19
SOURCE BUG Duration: 16s

Subject

Bugfix, wastn retrieving last block, patch by Jean-Christophe Dubois

SOURCE BUG

This commit was genuinely broken at the time (not related to our build system): sysdeps/linux/Config.in "fileutils/Config.in" dosyasini kaynak gosteriyor ama bu dosya repoda hic var olmadi (2002-12-05 - 2003-02-15 arasi orijinal yazar hatasi, 3238ea167 ile duzeltildi)

→ Bu hatanin tam hikayesini ve duzeltme diffini gor

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/tftp.c+5 -4
@@ -279,8 +279,6 @@ static inline int tftp(const int cmd, const struct hostent *host,
}
cp += len;
- } else if (finished) {
- break;
}
}
@@ -306,8 +304,11 @@ static inline int tftp(const int cmd, const struct hostent *host,
}
- /* receive packet */
+ if (finished) {
+ break;
+ }
+ /* receive packet */
memset(&from, 0, sizeof(from));
fromlen = sizeof(from);
@@ -359,7 +360,7 @@ static inline int tftp(const int cmd, const struct hostent *host,
} while (timeout && (len >= 0));
- if (len < 0) {
+ if ((finished) || (len < 0)) {
break;
}