← Commit list

ce8879369

Rob Landley
Rob Landley
2005-12-21
SOURCE BUG Duration: 9s

Subject

When you went "losetup -d /dev/loop0 /dev/loop1" the error message was strange.

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 →

include/usage.h+1 -1
@@ -1657,7 +1657,7 @@
"\t-f\t\toutput data as the log grows"
#define losetup_trivial_usage \
- "[-od] LOOPDEVICE [FILE]\n"
+ "[-od] LOOPDEVICE [FILE]"
#define losetup_full_usage \
"Associate LOOPDEVICE with FILE, or display current association.\n\n" \
"Options:\n" \
util-linux/losetup.c+2 -1
@@ -33,7 +33,8 @@ int losetup_main (int argc, char **argv)
switch(getopt(argc,argv, "do:")) {
case 'd':
/* detach takes exactly one argument */
- if(optind+1==argc && !del_loop(argv[optind])) return EXIT_SUCCESS;
+ if(optind+1!=argc) bb_show_usage();
+ if(!del_loop(argv[optind])) return EXIT_SUCCESS;
die_failed:
bb_perror_msg_and_die("%s",argv[optind]);