From ea97282af1e95b9cd7ea4939bcfebd8da589f979 Mon Sep 17 00:00:00 2001 From: "\"Vladimir N. Oleynik\"" Date: Fri, 28 Oct 2005 15:43:41 +0000 Subject: bb_opt_complementally for rdate applet. Add losed record to util-linux/Makefile.in for switch_root applet --- util-linux/rdate.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'util-linux/rdate.c') diff --git a/util-linux/rdate.c b/util-linux/rdate.c index e2824607e..cabcc7dbe 100644 --- a/util-linux/rdate.c +++ b/util-linux/rdate.c @@ -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]); -- cgit v1.2.3