fix from uClinux-dist for proper exit status if reading /proc/modules failed
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)
| @@ -190,13 +190,13 @@ int lsmod_main(int argc, char **argv) | |
| } | |
| fclose(file); | |
| } | |
| - | return 0; /* Success */ |
| + | return EXIT_SUCCESS; |
| #else | |
| - | if (bb_xprint_file_by_name("/proc/modules") < 0) { |
| - | return 0; |
| - | } |
| + | if (bb_xprint_file_by_name("/proc/modules") == 0) |
| + | return EXIT_SUCCESS; |
| #endif /* CONFIG_FEATURE_2_6_MODULES */ | |
| - | return 1; |
| + | |
| + | return EXIT_FAILURE; |
| } | |
| #endif /* CONFIG_FEATURE_QUERY_MODULE_INTERFACE */ | |