Fix 'date -u'

-Erik
This commit is contained in:
Eric Andersen 2000-06-06 22:17:43 +00:00
parent fb8ba506bb
commit 1f6262b8e2
3 changed files with 2 additions and 4 deletions

2
TODO
View File

@ -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' doesn't work
- 'grep *foo file' segfaults - 'grep *foo file' segfaults
- ps dirent race bug (need to stat the file before attempting chdir) - 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). - I believe that swaponoff may also be also broken (check it).
- It used to be that BusyBox tar would happily overwrite existing files on - 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 an extraction. However, as of 0.42, BusyBox tar simply dies as soon as an

View File

@ -187,7 +187,7 @@ int date_main(int argc, char **argv)
utc = 1; utc = 1;
if (putenv("TZ=UTC0") != 0) if (putenv("TZ=UTC0") != 0)
fatalError(memory_exhausted, "date"); fatalError(memory_exhausted, "date");
/* Look ma, no break. Don't fix it either. */ break;
case 'd': case 'd':
use_arg = 1; use_arg = 1;
if (date_str != NULL) if (date_str != NULL)

2
date.c
View File

@ -187,7 +187,7 @@ int date_main(int argc, char **argv)
utc = 1; utc = 1;
if (putenv("TZ=UTC0") != 0) if (putenv("TZ=UTC0") != 0)
fatalError(memory_exhausted, "date"); fatalError(memory_exhausted, "date");
/* Look ma, no break. Don't fix it either. */ break;
case 'd': case 'd':
use_arg = 1; use_arg = 1;
if (date_str != NULL) if (date_str != NULL)