Fix 'date -u'
authorEric Andersen <andersen@codepoet.org>
Tue, 6 Jun 2000 22:17:43 +0000 (22:17 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 6 Jun 2000 22:17:43 +0000 (22:17 -0000)
 -Erik

TODO
coreutils/date.c
date.c

diff --git a/TODO b/TODO
index e6c9cfd8f3dd542ae25e9dcea71de65aef695a15..182408b75b44c0f227d5310710f800e46e1c38ac 100644 (file)
--- a/TODO
+++ b/TODO
@@ -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 
index 67d61a5101282607dfd25afba08be0ee2d515f53..8e584cecc128b89746807eabdc99e63362c6c4f8 100644 (file)
@@ -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)
diff --git a/date.c b/date.c
index 67d61a5101282607dfd25afba08be0ee2d515f53..8e584cecc128b89746807eabdc99e63362c6c4f8 100644 (file)
--- a/date.c
+++ b/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)