diff options
Diffstat (limited to 'util-linux/rdate.c')
-rw-r--r-- | util-linux/rdate.c | 7 |
1 files changed, 3 insertions, 4 deletions
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 | ||