svn commit: trunk/busybox/coreutils
vda at busybox.net
vda at busybox.net
Mon Apr 28 00:10:35 UTC 2008
Author: vda
Date: 2008-04-27 17:10:34 -0700 (Sun, 27 Apr 2008)
New Revision: 21881
Log:
date: complain if there are extraneout arguments
Modified:
trunk/busybox/coreutils/date.c
Changeset:
Modified: trunk/busybox/coreutils/date.c
===================================================================
--- trunk/busybox/coreutils/date.c 2008-04-27 23:10:00 UTC (rev 21880)
+++ trunk/busybox/coreutils/date.c 2008-04-28 00:10:34 UTC (rev 21881)
@@ -79,6 +79,8 @@
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
More information about the busybox-cvs
mailing list