Page MenuHomeFreeBSD

D44982.diff
No OneTemporary

D44982.diff

diff --git a/bin/date/date.c b/bin/date/date.c
--- a/bin/date/date.c
+++ b/bin/date/date.c
@@ -334,7 +334,9 @@
}
/* convert broken-down time to GMT clock time */
- if ((ts->tv_sec = mktime(lt)) == -1)
+ lt->tm_yday = -1;
+ ts->tv_sec = mktime(lt);
+ if (lt->tm_yday == -1)
errx(1, "nonexistent time");
ts->tv_nsec = 0;

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 18, 9:07 PM (21 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15893575
Default Alt Text
D44982.diff (333 B)

Event Timeline