Very minor tweak to tail.
This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)
No binary (build failed)
—
(log yok)
| @@ -85,10 +85,7 @@ static ssize_t tail_read(int fd, char *buf, size_t count) | |
| end = current = lseek(fd, 0, SEEK_CUR); | |
| if (!fstat(fd, &sbuf)) | |
| end = sbuf.st_size; | |
| - | if (end < current) |
| - | lseek(fd, 0, SEEK_SET); |
| - | else |
| - | lseek(fd, current, SEEK_SET); |
| + | lseek(fd, end < current ? 0 : current, SEEK_SET); |
| if ((r = safe_read(fd, buf, count)) < 0) { | |
| bb_perror_msg("read"); | |
| status = EXIT_FAILURE; | |