aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2012-12-08 09:19:51 -0800
committerPaul Eggert2012-12-08 09:19:51 -0800
commit5745a7df2b4abe06d032820f6ec7ddbac9ad5028 (patch)
tree5deecfc1b7b7c789abf9df72c177380d2cbef905 /src/ChangeLog
parentc56efa40745336c8067f047fe8f736821ddb3791 (diff)
downloademacs-5745a7df2b4abe06d032820f6ec7ddbac9ad5028.tar.gz
emacs-5745a7df2b4abe06d032820f6ec7ddbac9ad5028.zip
Use putenv+unsetenv instead of modifying environ directly.
* admin/merge-gnulib (GNULIB_MODULES): Add putenv, unsetenv. * lib/putenv.c, lib/unsetenv.c, m4/putenv.m4, m4/setenv.m4: New files, copied automatically from gnulib. * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. * src/alloc.c (xputenv): New function. * src/dbusbind.c (Fdbus_init_bus): * src/emacs.c (main): * src/xterm.c (x_term_init): Use xputenv instead of setenv or putenv, to detect memory exhaustion. * src/editfns.c (initial_tz): Move static var decl up. (tzvalbuf_in_environ): New static var. (init_editfns): Initialize these two static vars. (Fencode_time): Don't assume arbitrary limit on EMACS_INT width. Save old TZ value on stack, if it's small. (Fencode_time, set_time_zone_rule): Don't modify 'environ' directly; instead, use xputenv+unsetenv to set and restore TZ. (environbuf): Remove static var. All uses removed. (Fset_time_zone_rule): Do not save TZ and environ; no longer needed here. (set_time_zone_rule_tz1, set_time_zone_rule_tz2) [LOCALTIME_CACHE]: Move to inside set_time_zone_rule; they don't need file scope any more. (set_time_zone_rule): Maintain the TZ=value string separately. (syms_of_editfns): Don't initialize initial_tz; init_editfns now does it. * src/emacs.c (dump_tz) [HAVE_TZSET]: Now const. * src/lisp.h (xputenv): New decl. Fixes: debbugs:13070
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 54985d33b59..0be3eee6726 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,29 @@
12012-12-08 Paul Eggert <eggert@cs.ucla.edu>
2
3 Use putenv+unsetenv instead of modifying environ directly (Bug#13070).
4 * alloc.c (xputenv): New function.
5 * dbusbind.c (Fdbus_init_bus):
6 * emacs.c (main):
7 * xterm.c (x_term_init):
8 Use xputenv instead of setenv or putenv, to detect memory exhaustion.
9 * editfns.c (initial_tz): Move static var decl up.
10 (tzvalbuf_in_environ): New static var.
11 (init_editfns): Initialize these two static vars.
12 (Fencode_time): Don't assume arbitrary limit on EMACS_INT width.
13 Save old TZ value on stack, if it's small.
14 (Fencode_time, set_time_zone_rule): Don't modify 'environ' directly;
15 instead, use xputenv+unsetenv to set and restore TZ.
16 (environbuf): Remove static var. All uses removed.
17 (Fset_time_zone_rule): Do not save TZ and environ;
18 no longer needed here.
19 (set_time_zone_rule_tz1, set_time_zone_rule_tz2) [LOCALTIME_CACHE]:
20 Move to inside set_time_zone_rule; they don't need file scope any more.
21 (set_time_zone_rule): Maintain the TZ=value string separately.
22 (syms_of_editfns): Don't initialize initial_tz;
23 init_editfns now does it.
24 * emacs.c (dump_tz) [HAVE_TZSET]: Now const.
25 * lisp.h (xputenv): New decl.
26
12012-12-08 Fabrice Popineau <fabrice.popineau@gmail.com> 272012-12-08 Fabrice Popineau <fabrice.popineau@gmail.com>
2 28
3 * w32fns.c (emacs_abort): Don't do arithmetics on void pointers. 29 * w32fns.c (emacs_abort): Don't do arithmetics on void pointers.