← Commit list

66753a385

Bernhard Reutner-Fischer
Bernhard Reutner-Fischer
2006-03-18
SOURCE BUG Duration: 19s

Subject

- whitespace cleanup (and also check against the const first and only then look at bb_applet_name[1])

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 →

util-linux/freeramdisk.c+2 -2
@@ -28,8 +28,8 @@ int freeramdisk_main(int argc, char **argv)
fd = bb_xopen(argv[1], O_RDWR);
// Act like freeramdisk, fdflush, or both depending on configuration.
- result = ioctl(fd, (bb_applet_name[1]=='r' && ENABLE_FREERAMDISK)
- || !ENABLE_FDFLUSH ? _IO(0x12,97) : _IO(2,0x4b));
+ result = ioctl(fd, (ENABLE_FREERAMDISK && bb_applet_name[1]=='r')
+ || !ENABLE_FDFLUSH ? _IO(0x12,97) : _IO(2,0x4b));
if (ENABLE_FEATURE_CLEAN_UP) close(fd);