Discussion:
CVS commit: src/lib/libc/time
Christos Zoulas
2014-10-14 20:35:40 UTC
Permalink
Module Name: src
Committed By: christos
Date: Tue Oct 14 20:35:40 UTC 2014

Modified Files:
src/lib/libc/time: localtime.c

Log Message:
improve error checking (setting errno)


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/lib/libc/time/localtime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Christos Zoulas
2014-10-15 15:13:45 UTC
Permalink
Module Name: src
Committed By: christos
Date: Wed Oct 15 15:13:45 UTC 2014

Modified Files:
src/lib/libc/time: localtime.c

Log Message:
PR/49284: Andreas Gustafsson: sysinst segfaults when configuring network
manually. When tzload() fails called from zoneinit(), when trying to set the
local timezone for the first time in tzsetlcl(), we end up with a lclptr
that contains garbage, so settzname() core-dumps.

Thanks Andreas for the analysis!


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/lib/libc/time/localtime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Christos Zoulas
2014-10-16 17:53:32 UTC
Permalink
Module Name: src
Committed By: christos
Date: Thu Oct 16 17:53:32 UTC 2014

Modified Files:
src/lib/libc/time: localtime.c

Log Message:
- don't leak errno in mktime()
- when we load a new timezone, don't change anything unless the load succeeded.


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/lib/libc/time/localtime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Loading...