]> code.delx.au - gnu-emacs/blobdiff - src/ChangeLog
Use faccessat, not access, when checking file permissions.
[gnu-emacs] / src / ChangeLog
index 827850e332d0d1bf00452bacdb9233d7f428cd66..ee18650e99299b3e7a8f36f74b8d59e714a34fa0 100644 (file)
@@ -1,10 +1,74 @@
+2012-10-19  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Use faccessat, not access, when checking file permissions (Bug#12632).
+       * Makefile.in (LIB_EACCESS): New macro.
+       (LIBES): Use it.
+       * callproc.c (init_callproc):
+       * charset.c (init_charset):
+       * fileio.c (check_existing, check_executable):
+       * lread.c (openp, load_path_check):
+       * process.c (allocate_pty):
+       * xrdb.c (file_p):
+       Use faccessat, not access or euidaccess.  Use symbolic names
+       instead of integers for the flags, as they're portable now.
+       * charset.c, xrdb.c: Include <fcntl.h>, for the new flags used.
+       * fileio.c (Ffile_readable_p):
+       Use faccessat, not stat + open + close.
+       (file_directory_p): New function, which uses 'stat' on most places
+       but 'access' (for efficiency) if WINDOWSNT.
+       * fileio.c (Ffile_directory_p, Fset_file_times):
+       * xrdb.c (file_p): Use file_directory_p.
+       * lisp.h (file_directory_p): New decl.
+       * lread.c (openp): When opening a file, use fstat rather than
+       stat, as that avoids a permissions race.  When not opening a file,
+       use file_directory_p rather than stat.
+       * process.c, sysdep.c, term.c: All uses of '#ifdef O_NONBLOCK'
+       changed to '#if O_NONBLOCK', to accommodate gnulib O_* style.
+       * w32.c (sys_faccessat): Rename from sys_access and switch to
+       faccessat's API.  All uses changed.
+
+2012-10-19  Kazuhiro Ito  <kzhr@d1.dion.ne.jp>  (tiny change)
+
+       * font.c (Ffont_at): Fix previous change.
+
+2012-10-19  Eli Zaretskii  <eliz@gnu.org>
+
+       * puresize.h (BASE_PURESIZE): Bump the base value to 1700000.  See
+       http://lists.gnu.org/archive/html/emacs-devel/2012-10/msg00593.html
+       for the reasons.
+
+       * alloc.c (NSTATICS): Decrease to 0x800.
+
+2012-10-19  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * fns.c (Fnreverse): Include the problem element when signalling an
+       error (bug#12677).
+
+2012-10-18  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsterm.m (ns_select): Check writefds before call to
+       FD_ISSET (Bug#12668).
+
+2012-10-18  Daniel Colascione  <dancol@dancol.org>
+
+       * alloc.c (NSTATICS): Increase from 0x650 to 0x1000
+       (staticpro): If we run out of staticpro slots, die with an
+       informative error instead of just calling emacs_abort.
+
+2012-10-18  Martin Rudalics  <rudalics@gmx.at>
+
+       Fix two flaws reported by Dmitry Antipov.
+       * window.c (Ftemp_output_buffer_show): Remove.
+       (Fwindow_vscroll, Fset_window_vscroll): Use decode_live_window.
+       (syms_of_window): Remove defsubr for Stemp_output_buffer_show.
+
 2012-10-17  Eli Zaretskii  <eliz@gnu.org>
 
-       * makefile.w32-in ($(BLD)/w32.$(O)): 
-       ($(BLD)/vm-limit.$(O)): 
-       ($(BLD)/term.$(O)): 
-       ($(BLD)/unexw32.$(O)): 
-       ($(BLD)/fileio.$(O)): 
+       * makefile.w32-in ($(BLD)/w32.$(O)):
+       ($(BLD)/vm-limit.$(O)):
+       ($(BLD)/term.$(O)):
+       ($(BLD)/unexw32.$(O)):
+       ($(BLD)/fileio.$(O)):
        ($(BLD)/dispnew.$(O)): Update dependencies.
 
        * w32term.h (w32_initialize_display_info, initialize_w32_display):