diff options
author | vodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-10-28 15:43:41 +0000 |
---|---|---|
committer | vodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-10-28 15:43:41 +0000 |
commit | 5de8e9c549e7f6e9a947f32fe8a30e193f0a8d43 (patch) | |
tree | 7c54e809f1ba62a9ebf1945f642abd79d582c4ef /util-linux | |
parent | 4835431e8eb37c83ecd2c4a079ceced5cc0ed88e (diff) | |
download | busybox-w32-5de8e9c549e7f6e9a947f32fe8a30e193f0a8d43.tar.gz busybox-w32-5de8e9c549e7f6e9a947f32fe8a30e193f0a8d43.tar.bz2 busybox-w32-5de8e9c549e7f6e9a947f32fe8a30e193f0a8d43.zip |
bb_opt_complementally for rdate applet. Add losed record to util-linux/Makefile.in for switch_root applet
git-svn-id: svn://busybox.net/trunk/busybox@11960 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/Makefile.in | 1 | ||||
-rw-r--r-- | util-linux/rdate.c | 7 |
2 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/Makefile.in b/util-linux/Makefile.in index 69fdd1002..f6fdba96a 100644 --- a/util-linux/Makefile.in +++ b/util-linux/Makefile.in | |||
@@ -33,6 +33,7 @@ UTILLINUX-$(CONFIG_PIVOT_ROOT) +=pivot_root.o | |||
33 | UTILLINUX-$(CONFIG_RDATE) +=rdate.o | 33 | UTILLINUX-$(CONFIG_RDATE) +=rdate.o |
34 | UTILLINUX-$(CONFIG_READPROFILE) +=readprofile.o | 34 | UTILLINUX-$(CONFIG_READPROFILE) +=readprofile.o |
35 | UTILLINUX-$(CONFIG_SWAPONOFF) +=swaponoff.o | 35 | UTILLINUX-$(CONFIG_SWAPONOFF) +=swaponoff.o |
36 | UTILLINUX-$(CONFIG_SWITCH_ROOT) +=switch_root.o | ||
36 | UTILLINUX-$(CONFIG_UMOUNT) +=umount.o | 37 | UTILLINUX-$(CONFIG_UMOUNT) +=umount.o |
37 | 38 | ||
38 | libraries-y+=$(UTILLINUX_DIR)$(UTILLINUX_AR) | 39 | libraries-y+=$(UTILLINUX_DIR)$(UTILLINUX_AR) |
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) | |||
62 | int rdate_main(int argc, char **argv) | 62 | int rdate_main(int argc, char **argv) |
63 | { | 63 | { |
64 | time_t remote_time; | 64 | time_t remote_time; |
65 | unsigned long flags; | ||
65 | 66 | ||
66 | unsigned long flags = bb_getopt_ulflags(argc, argv, "sp"); | 67 | bb_opt_complementally = "-1"; |
67 | 68 | flags = bb_getopt_ulflags(argc, argv, "sp"); | |
68 | if (!flags || argc == optind) | ||
69 | bb_show_usage(); | ||
70 | 69 | ||
71 | remote_time = askremotedate(argv[optind]); | 70 | remote_time = askremotedate(argv[optind]); |
72 | 71 | ||