Fixed time command segfault with no arguments maemo/3_1.10.2.legal-1osso14
authorTuro Janka <turo.janka@plenware.com>
Tue, 17 Feb 2009 14:11:37 +0000 (16:11 +0200)
committerTuro Janka <ext-turo.1.janka@nokia.com>
Tue, 17 Feb 2009 14:11:37 +0000 (16:11 +0200)
debian/changelog
miscutils/time.c

index eaec74a..aa72c3e 100644 (file)
@@ -1,3 +1,9 @@
+busybox (3:1.10.2.legal-1osso14) unstable; urgency=low
+  
+  * Fixes time command segfault. Fixes: NB#98230
+ -- Turo Janka <ext-turo.1.janka@nokia.com>  Tue, 21 Jan 2009 15:48:12 +0200
+
 busybox (3:1.10.2.legal-1osso13) unstable; urgency=low
 
   * Enable more tools. Fixes: NB#98035
index ed43859..395fcb5 100644 (file)
@@ -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;