summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/Makefile.in1
-rw-r--r--util-linux/rdate.c7
2 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/Makefile.in b/util-linux/Makefile.in
index 69fdd10..f6fdba9 100644
--- a/util-linux/Makefile.in
+++ b/util-linux/Makefile.in
@@ -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)
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]);