summaryrefslogtreecommitdiff
path: root/util-linux/rdate.c
diff options
context:
space:
mode:
author"Vladimir N. Oleynik"2005-10-28 15:43:41 +0000
committer"Vladimir N. Oleynik"2005-10-28 15:43:41 +0000
commitea97282af1e95b9cd7ea4939bcfebd8da589f979 (patch)
tree7c54e809f1ba62a9ebf1945f642abd79d582c4ef /util-linux/rdate.c
parentaa87276bed8df4cdcd443f102b58d95c26be9c6d (diff)
downloadbusybox-ea97282af1e95b9cd7ea4939bcfebd8da589f979.zip
busybox-ea97282af1e95b9cd7ea4939bcfebd8da589f979.tar.gz
bb_opt_complementally for rdate applet. Add losed record to util-linux/Makefile.in for switch_root applet
Diffstat (limited to 'util-linux/rdate.c')
-rw-r--r--util-linux/rdate.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/util-linux/rdate.c b/util-linux/rdate.c
index e282460..cabcc7d 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]);