From 5aed10b2071e48c76c5eb4f647347ccb3d384732 Mon Sep 17 00:00:00 2001 From: Turo Janka Date: Tue, 17 Feb 2009 16:11:37 +0200 Subject: [PATCH 1/1] Fixed time command segfault with no arguments --- debian/changelog | 6 ++++++ miscutils/time.c | 1 + 2 files changed, 7 insertions(+) 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; -- 1.7.9.5