← Commit list

22f383e69

Rob Landley
Rob Landley
2006-06-27
SOURCE BUG Duration: 34s

Subject

Fix http://bugs.busybox.net/view.php?id=906 which could cause failures in top.

SOURCE BUG

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)

→ 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 →

libbb/procps.c+2 -1
@@ -28,7 +28,8 @@ static int read_to_buf(const char *filename, void *buf)
fd = open(filename, O_RDONLY);
if(fd < 0)
return -1;
- ret = read(fd, buf, PROCPS_BUFSIZE);
+ ret = read(fd, buf, PROCPS_BUFSIZE-1);
+ ((char *)buf)[ret > 0 ? ret : 0] = 0;
close(fd);
return ret;
}