projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0431ed
)
date: complain if there are extraneout arguments
author
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 28 Apr 2008 00:10:34 +0000
(
00:10
-0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 28 Apr 2008 00:10:34 +0000
(
00:10
-0000)
coreutils/date.c
patch
|
blob
|
history
diff --git
a/coreutils/date.c
b/coreutils/date.c
index 2aecbaac25a10540b245f743d987a4230782b2e3..2c61aa6464111946193bd9940db77b1de95036cf 100644
(file)
--- a/
coreutils/date.c
+++ b/
coreutils/date.c
@@
-79,6
+79,8
@@
int date_main(int argc ATTRIBUTE_UNUSED, char **argv)
if (!(opt & (DATE_OPT_SET | DATE_OPT_DATE))) {
opt |= DATE_OPT_SET;
date_str = argv[0]; /* can be NULL */
+ } else if (argv[0]) {
+ bb_show_usage();
}
/* Now we have parsed all the information except the date format