Fix 'date -u'
-Erik
diff --git a/TODO b/TODO
index e6c9cfd..182408b 100644
--- a/TODO
+++ b/TODO
@@ -22,8 +22,6 @@
- '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 67d61a5..8e584ce 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -187,7 +187,7 @@
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)
diff --git a/date.c b/date.c
index 67d61a5..8e584ce 100644
--- a/date.c
+++ b/date.c
@@ -187,7 +187,7 @@
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)