From: Turo Janka Date: Tue, 17 Feb 2009 14:11:37 +0000 (+0200) Subject: Fixed time command segfault with no arguments X-Git-Tag: maemo/3_1.10.2.legal-1osso14 X-Git-Url: http://git.maemo.org/git/?p=busybox4maemo;a=commitdiff_plain;h=5aed10b2071e48c76c5eb4f647347ccb3d384732;ds=inline Fixed time command segfault with no arguments --- diff --git a/debian/changelog b/debian/changelog index eaec74a..aa72c3e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +busybox (3:1.10.2.legal-1osso14) unstable; urgency=low + + * Fixes time command segfault. Fixes: NB#98230 + + -- Turo Janka Tue, 21 Jan 2009 15:48:12 +0200 + busybox (3:1.10.2.legal-1osso13) unstable; urgency=low * Enable more tools. Fixes: NB#98035 diff --git a/miscutils/time.c b/miscutils/time.c index ed43859..395fcb5 100644 --- a/miscutils/time.c +++ b/miscutils/time.c @@ -402,6 +402,7 @@ int time_main(int argc ATTRIBUTE_UNUSED, char **argv) const char *output_format = default_format; int opt; + opt_complementary = "-1"; /* at least one arg */ /* "+": stop on first non-option */ opt = getopt32(argv, "+vp"); argv += optind;