diff options
| author | Eli Zaretskii | 2012-11-17 20:00:16 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-11-17 20:00:16 +0200 |
| commit | cf2d22b874ca2df0072e32ee641e8efffe4abd6d (patch) | |
| tree | 1795142ec7861fc85c61adc90f03265b69041556 /src/ChangeLog | |
| parent | 3c4ca7155293ffc2d04708007131bcbc882d8913 (diff) | |
| parent | 6ad30855c02908fdd99d9b11943719e185e65ee3 (diff) | |
| download | emacs-cf2d22b874ca2df0072e32ee641e8efffe4abd6d.tar.gz emacs-cf2d22b874ca2df0072e32ee641e8efffe4abd6d.zip | |
Merge from trunk.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 157 |
1 files changed, 157 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e3be3f9149d..cea22d498ed 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,160 @@ | |||
| 1 | 2012-11-17 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * w32.c (faccessat): Pretend that directories have the execute bit | ||
| 4 | set. Emacs expects that, e.g., in files.el:cd-absolute. | ||
| 5 | |||
| 6 | * w32proc.c (create_child): Don't clip the PID of the child | ||
| 7 | process to fit into an Emacs integer, as this is no longer a | ||
| 8 | restriction. | ||
| 9 | (waitpid): Rename from sys_wait. Emulate a Posix 'waitpid' by | ||
| 10 | reaping only the process specified by PID argument, if that is | ||
| 11 | positive. Use PID instead of dead_child to know which process to | ||
| 12 | reap. Wait for the child to die only if WNOHANG is not in | ||
| 13 | OPTIONS. | ||
| 14 | (sys_select): Don't set dead_child. | ||
| 15 | |||
| 16 | * sysdep.c (wait_for_termination_1): Remove the WINDOWSNT portion, | ||
| 17 | as it is no longer needed. | ||
| 18 | |||
| 19 | * process.c (waitpid, WUNTRACED) [!WNOHANG]: Remove definitions, | ||
| 20 | no longer needed. | ||
| 21 | (record_child_status_change): Remove the setting of | ||
| 22 | record_at_most_one_child for the !WNOHANG case. | ||
| 23 | |||
| 24 | 2012-11-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 25 | |||
| 26 | Fix problems in ns port found by static checking. | ||
| 27 | * nsterm.m: Include <pthread.h>, for pthread_mutex_lock etc. | ||
| 28 | (hold_event, setPosition:portion:whole:): Send SIGIO only to self, | ||
| 29 | not to process group. | ||
| 30 | (ns_select): Use emacs_write, not write, as that's more robust | ||
| 31 | in the presence of signals. | ||
| 32 | (fd_handler:): Check for read errors. | ||
| 33 | |||
| 34 | 2012-11-16 Glenn Morris <rgm@gnu.org> | ||
| 35 | |||
| 36 | * editfns.c (Fmessage): Mention message-log-max. (Bug#12849) | ||
| 37 | |||
| 38 | 2012-11-16 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 39 | |||
| 40 | * eval.c (Finteractive_p): Revert lexbind-merge mishap. | ||
| 41 | |||
| 42 | 2012-11-16 Eli Zaretskii <eliz@gnu.org> | ||
| 43 | |||
| 44 | * w32proc.c (timer_loop): Make sure SuspendThread and ResumeThread | ||
| 45 | use the same value of thread handle. | ||
| 46 | (start_timer_thread): If the timer thread exited (due to error), | ||
| 47 | clean up by closing the two handles it used. Duplicate the caller | ||
| 48 | thread's handle here, so it gets duplicated only once, when | ||
| 49 | launching the timer thread. Set priority of the timer thread, not | ||
| 50 | the caller thread. | ||
| 51 | (getitimer): Don't duplicate the caller thread's handle here. | ||
| 52 | (Bug#12832) | ||
| 53 | |||
| 54 | 2012-11-16 Jan Djärv <jan.h.d@swipnet.se> | ||
| 55 | |||
| 56 | * nsterm.m (hold_event): Send SIGIO to make sure ns_read_socket is | ||
| 57 | called (Bug#12834). | ||
| 58 | |||
| 59 | 2012-11-16 Paul Eggert <eggert@cs.ucla.edu> | ||
| 60 | |||
| 61 | Remove no-longer-used pty_max_bytes variable. | ||
| 62 | * process.c (pty_max_bytes): Remove; unused. | ||
| 63 | (send_process): Do not set it. | ||
| 64 | |||
| 65 | 2012-11-15 Juanma Barranquero <lekktu@gmail.com> | ||
| 66 | |||
| 67 | * makefile.w32-in ($(BLD)/dispnew.$(O), $(BLD)/emacs.$(O)): | ||
| 68 | Update dependencies. | ||
| 69 | |||
| 70 | 2012-11-15 Paul Eggert <eggert@cs.ucla.edu> | ||
| 71 | |||
| 72 | * eval.c (mark_backtrace) [BYTE_MARK_STACK]: Remove stray '*'. | ||
| 73 | This follows up on the 2012-09-29 patch that removed indirection | ||
| 74 | for the 'function' field. Reported by Sergey Vinokurov in | ||
| 75 | <http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00263.html>. | ||
| 76 | |||
| 77 | 2012-11-14 Eli Zaretskii <eliz@gnu.org> | ||
| 78 | |||
| 79 | * w32.c (faccessat): Rename from sys_faccessat. (No need to use a | ||
| 80 | different name, as the MS runtime does not have such a function, | ||
| 81 | and probably never will.) All callers changed. Ignore DIRFD | ||
| 82 | value if PATH is an absolute file name, to match Posix spec | ||
| 83 | better. If AT_SYMLINK_NOFOLLOW is set in FLAGS, don't resolve | ||
| 84 | symlinks. | ||
| 85 | |||
| 86 | 2012-11-14 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 87 | |||
| 88 | * xdisp.c (echo_area_display, redisplay_internal): | ||
| 89 | Omit redundant check whether frame_garbaged is set. | ||
| 90 | |||
| 91 | 2012-11-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 92 | |||
| 93 | Use faccessat, not access, when checking file permissions (Bug#12632). | ||
| 94 | This fixes a bug that has been present in Emacs since its creation. | ||
| 95 | It was reported by Chris Torek in 1983 even before GNU Emacs existed, | ||
| 96 | which must set some sort of record. (Torek's bug report was against | ||
| 97 | a predecessor of GNU Emacs, but GNU Emacs happened to have the | ||
| 98 | same common flaw.) See Torek's Usenet posting | ||
| 99 | "setuid/setgid programs & Emacs" Article-I.D.: sri-arpa.858 | ||
| 100 | Posted: Fri Apr 8 14:18:56 1983. | ||
| 101 | * Makefile.in (LIB_EACCESS): New macro. | ||
| 102 | (LIBES): Use it. | ||
| 103 | * callproc.c (init_callproc): | ||
| 104 | * charset.c (init_charset): | ||
| 105 | * fileio.c (check_existing, check_executable, check_writable) | ||
| 106 | (Ffile_readable_p): | ||
| 107 | * lread.c (openp, load_path_check): | ||
| 108 | * process.c (allocate_pty): | ||
| 109 | * xrdb.c (file_p): | ||
| 110 | Use effective UID when checking permissions, not real UID. | ||
| 111 | * callproc.c (init_callproc): | ||
| 112 | * charset.c (init_charset): | ||
| 113 | * lread.c (load_path_check, init_lread): | ||
| 114 | Test whether directories are accessible, not merely whether they exist. | ||
| 115 | * conf_post.h (GNULIB_SUPPORT_ONLY_AT_FDCWD): New macro. | ||
| 116 | * fileio.c (check_existing, check_executable, check_writable) | ||
| 117 | (Ffile_readable_p): | ||
| 118 | Use symbolic names instead of integers for the flags, as they're | ||
| 119 | portable now. | ||
| 120 | (check_writable): New arg AMODE. All uses changed. | ||
| 121 | Set errno on failure. | ||
| 122 | (Ffile_readable_p): Use faccessat, not stat + open + close. | ||
| 123 | (Ffile_writable_p): No need to call check_existing + check_writable. | ||
| 124 | Just call check_writable and then look at errno. This saves a syscall. | ||
| 125 | dir should never be nil; replace an unnecessary runtime check | ||
| 126 | with an eassert. When checking the parent directory of a nonexistent | ||
| 127 | file, check that the directory is searchable as well as writable, as | ||
| 128 | we can't create files in unsearchable directories. | ||
| 129 | (file_directory_p): New function, which uses 'stat' on most platforms | ||
| 130 | but faccessat with D_OK (for efficiency) if WINDOWSNT. | ||
| 131 | (Ffile_directory_p, Fset_file_times): Use it. | ||
| 132 | (file_accessible_directory_p): New function, which uses a single | ||
| 133 | syscall for efficiency. | ||
| 134 | (Ffile_accessible_directory_p): Use it. | ||
| 135 | * xrdb.c (file_p): Use file_directory_p. | ||
| 136 | * lisp.h (file_directory_p, file_accessible_directory_p): New decls. | ||
| 137 | * lread.c (openp): When opening a file, use fstat rather than | ||
| 138 | stat, as that avoids a permissions race. When not opening a file, | ||
| 139 | use file_directory_p rather than stat. | ||
| 140 | (dir_warning): First arg is now a usage string, not a format. | ||
| 141 | Use errno. All uses changed. | ||
| 142 | * nsterm.m (ns_term_init): Remove unnecessary call to file-readable | ||
| 143 | that merely introduced a race. | ||
| 144 | * process.c, sysdep.c, term.c: All uses of '#ifdef O_NONBLOCK' | ||
| 145 | changed to '#if O_NONBLOCK', to accommodate gnulib O_* style, | ||
| 146 | and similarly for the other O_* flags. | ||
| 147 | * w32.c (sys_faccessat): Rename from sys_access and switch to | ||
| 148 | faccessat's API. All uses changed. | ||
| 149 | * xrdb.c: Do not include <sys/stat.h>; no longer needed. | ||
| 150 | (magic_db): Rename from magic_file_p. | ||
| 151 | (magic_db, search_magic_path): Return an XrmDatabase rather than a | ||
| 152 | char *, so that we don't have to test for file existence | ||
| 153 | separately from opening the file for reading. This removes a race | ||
| 154 | fixes a permission-checking problem, and simplifies the code. | ||
| 155 | All uses changed. | ||
| 156 | (file_p): Remove; no longer needed. | ||
| 157 | |||
| 1 | 2012-11-13 Dmitry Antipov <dmantipov@yandex.ru> | 158 | 2012-11-13 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 159 | ||
| 3 | Omit glyphs initialization at startup. | 160 | Omit glyphs initialization at startup. |