bb_opt_complementally for rdate applet. Add losed record to util-linux/Makefile.in for switch_root applet
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)
| @@ -33,6 +33,7 @@ UTILLINUX-$(CONFIG_PIVOT_ROOT) +=pivot_root.o | |
| UTILLINUX-$(CONFIG_RDATE) +=rdate.o | |
| UTILLINUX-$(CONFIG_READPROFILE) +=readprofile.o | |
| UTILLINUX-$(CONFIG_SWAPONOFF) +=swaponoff.o | |
| + | UTILLINUX-$(CONFIG_SWITCH_ROOT) +=switch_root.o |
| UTILLINUX-$(CONFIG_UMOUNT) +=umount.o | |
| libraries-y+=$(UTILLINUX_DIR)$(UTILLINUX_AR) | |
| @@ -62,11 +62,10 @@ static time_t askremotedate(const char *host) | |
| int rdate_main(int argc, char **argv) | |
| { | |
| time_t remote_time; | |
| + | unsigned long flags; |
| - | unsigned long flags = bb_getopt_ulflags(argc, argv, "sp"); |
| - | |
| - | if (!flags || argc == optind) |
| - | bb_show_usage(); |
| + | bb_opt_complementally = "-1"; |
| + | flags = bb_getopt_ulflags(argc, argv, "sp"); |
| remote_time = askremotedate(argv[optind]); | |