diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-06-06 22:17:43 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-06-06 22:17:43 +0000 |
commit | 1f6262b8e2b4225a028b016fed4a3a9ee717b540 (patch) | |
tree | 77c7d455511aa7d5fff2ce0bb16a7f019b822b34 | |
parent | fb8ba506bb335791ad2406e179f5a98834b37f3f (diff) | |
download | busybox-1f6262b8e2b4225a028b016fed4a3a9ee717b540.tar.gz |
Fix 'date -u'
-Erik
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | coreutils/date.c | 2 | ||||
-rw-r--r-- | date.c | 2 |
3 files changed, 2 insertions, 4 deletions
@@ -22,8 +22,6 @@ Bugs that need fixing before the 0.44 release goes out the door: - 'grep foo$ file' doesn't work - 'grep *foo file' segfaults - ps dirent race bug (need to stat the file before attempting chdir) - - The following commands segfault or are broken: - date -u - I believe that swaponoff may also be also broken (check it). - It used to be that BusyBox tar would happily overwrite existing files on an extraction. However, as of 0.42, BusyBox tar simply dies as soon as an diff --git a/coreutils/date.c b/coreutils/date.c index 67d61a510..8e584cecc 100644 --- a/coreutils/date.c +++ b/coreutils/date.c @@ -187,7 +187,7 @@ int date_main(int argc, char **argv) utc = 1; if (putenv("TZ=UTC0") != 0) fatalError(memory_exhausted, "date"); - /* Look ma, no break. Don't fix it either. */ + break; case 'd': use_arg = 1; if (date_str != NULL) @@ -187,7 +187,7 @@ int date_main(int argc, char **argv) utc = 1; if (putenv("TZ=UTC0") != 0) fatalError(memory_exhausted, "date"); - /* Look ma, no break. Don't fix it either. */ + break; case 'd': use_arg = 1; if (date_str != NULL) |