diff options
| author | Ron Yorston <rmy@pobox.com> | 2014-01-19 22:10:30 +0000 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2014-01-19 22:10:30 +0000 |
| commit | 19148b1e7ebb279bfbc1ea8be329f795fa2c1eb0 (patch) | |
| tree | 5a5c20faa5a0385ef2f0d1e1595f77cd4eae8988 /coreutils | |
| parent | 9b6a1210733c8d069cd595d37809062ede2eca68 (diff) | |
| download | busybox-w32-19148b1e7ebb279bfbc1ea8be329f795fa2c1eb0.tar.gz busybox-w32-19148b1e7ebb279bfbc1ea8be329f795fa2c1eb0.tar.bz2 busybox-w32-19148b1e7ebb279bfbc1ea8be329f795fa2c1eb0.zip | |
date: add dummy stime
Diffstat (limited to 'coreutils')
| -rw-r--r-- | coreutils/date.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/coreutils/date.c b/coreutils/date.c index 4860aa308..767e0d4a2 100644 --- a/coreutils/date.c +++ b/coreutils/date.c | |||
| @@ -293,14 +293,9 @@ int date_main(int argc UNUSED_PARAM, char **argv) | |||
| 293 | maybe_set_utc(opt); | 293 | maybe_set_utc(opt); |
| 294 | 294 | ||
| 295 | /* if setting time, set it */ | 295 | /* if setting time, set it */ |
| 296 | #if ENABLE_PLATFORM_MINGW32 | ||
| 297 | if (opt & OPT_SET) | ||
| 298 | bb_error_msg_and_die("Setting date is not supported"); | ||
| 299 | #else | ||
| 300 | if ((opt & OPT_SET) && stime(&ts.tv_sec) < 0) { | 296 | if ((opt & OPT_SET) && stime(&ts.tv_sec) < 0) { |
| 301 | bb_perror_msg("can't set date"); | 297 | bb_perror_msg("can't set date"); |
| 302 | } | 298 | } |
| 303 | #endif | ||
| 304 | } | 299 | } |
| 305 | 300 | ||
| 306 | /* Display output */ | 301 | /* Display output */ |
