1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-14 09:39:42 +00:00
emacs/doc/lispref
Paul Eggert 01c885f21f Fix race with rename-file etc. with dir NEWNAME
This changes the behavior of rename-file etc. slightly.
The old behavior mostly disagreed with the documentation, and had
a race condition bug that could allow attackers to modify victims'
write-protected directories (Bug#27986).
* doc/lispref/files.texi (Changing Files): Document that in
rename-file etc., NEWFILE is special if it is a directory name.
* etc/NEWS: Document the change in behavior.
* src/fileio.c (directory_like): Remove.  All uses removed.
(expand_cp_target): Test only whether NEWNAME is a directory name,
not whether it is currently a directory.  This avoids a race.
(Fcopy_file, Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
Document behavior if NEWNAME is a directory name.
(Frename_file): Simplify now that the destdir behavior occurs
only when NEWNAME is a directory name.
* test/lisp/net/tramp-tests.el (tramp-test11-copy-file)
(tramp-test12-rename-file, tramp--test-check-files):
Adjust tests to match new behavior.
2017-09-10 15:46:51 -07:00
..
abbrevs.texi Update copyright year to 2017 2016-12-31 19:42:26 -08:00
anti.texi Rewrite Antinews for Emacs 26 2017-09-02 12:37:51 +03:00
back.texi Update copyright year to 2017 2016-12-31 19:42:26 -08:00
backups.texi Be more consistent about "directory name" in manual 2017-09-09 13:41:20 -07:00
book-spine.texi Fix single-quoting style in PDF manuals 2015-05-01 12:06:38 -07:00
buffers.texi Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
ChangeLog.1 More authors.el updates 2017-06-07 14:27:21 -04:00
commands.texi Be more consistent about "directory name" in manual 2017-09-09 13:41:20 -07:00
compile.texi Index byte-compile-debug 2017-01-31 22:36:02 +02:00
control.texi Update copyright year to 2017 2016-12-31 19:42:26 -08:00
customize.texi Be more consistent about "directory name" in manual 2017-09-09 13:41:20 -07:00
debugging.texi Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
display.texi Be more consistent about "directory name" in manual 2017-09-09 13:41:20 -07:00
doclicense.texi Update licenses to latest version from FSF. 2012-12-06 00:33:32 -08:00
edebug.texi Change edebug-max-depth from defconst to defcustom 2017-02-04 12:56:19 +02:00
elisp.texi Rewrite Antinews for Emacs 26 2017-09-02 12:37:51 +03:00
errors.texi Throw a `search-failed' derived error in Info search 2017-04-03 19:36:14 -04:00
eval.texi Update copyright year to 2017 2016-12-31 19:42:26 -08:00
files.texi Fix race with rename-file etc. with dir NEWNAME 2017-09-10 15:46:51 -07:00
frames.texi Add ability to change macOS WM theme (bug#27973) 2017-08-23 19:57:00 +01:00
functions.texi Fix a minor markup problem in ELisp manual 2017-09-06 21:00:29 +03:00
gpl.texi Update licenses to latest version from FSF. 2012-12-06 00:33:32 -08:00
hash.texi Use float instead of Lisp_Object for rehash_size 2017-02-21 15:39:17 -08:00
help.texi Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
hooks.texi Remove Vwindow_text_change_functions and related code 2017-07-07 08:40:24 +02:00
index.texi Fix minor whitespace issues after "." in manual. 2012-12-05 14:27:56 -08:00
internals.texi Replace QUIT with maybe_quit 2017-01-25 21:25:37 -08:00
intro.texi Remove the build number from emacs-version variable 2017-02-17 20:15:21 -05:00
keymaps.texi Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
lay-flat.texi Update copyright year to 2017 2016-12-31 19:42:26 -08:00
lists.texi alist-get: Add optional arg TESTFN 2017-07-17 21:30:50 +09:00
loading.texi Be more consistent about "directory name" in manual 2017-09-09 13:41:20 -07:00
macros.texi Documentation fix in elisp reference manual 2017-02-24 10:21:31 +09:00
Makefile.in Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
maps.texi Update copyright year to 2017 2016-12-31 19:42:26 -08:00
markers.texi Update copyright year to 2017 2016-12-31 19:42:26 -08:00
minibuf.texi Improve expand-file-name doc 2017-08-25 21:14:06 -07:00
modes.texi Provide additional support for child frames 2017-06-25 11:33:25 +02:00
nonascii.texi Support casing characters which map into multiple code points (bug#24603) 2017-04-06 20:54:58 +02:00
numbers.texi min and max now return one of their arguments 2017-03-06 17:26:55 -08:00
objects.texi Adapt Lisp reference to reader changes 2017-07-02 12:32:23 +02:00
os.texi Be more consistent about "directory name" in manual 2017-09-09 13:41:20 -07:00
package.texi Merge from origin/emacs-25 2017-04-27 22:03:56 -07:00
positions.texi Add absolute optional parameter to line-number-at-pos (Bug#26417) 2017-07-03 14:43:02 +02:00
processes.texi Minor improvements for tramp-interrupt-process, documentation 2017-08-24 15:53:56 +02:00
README Update copyright year to 2017 2016-12-31 19:42:26 -08:00
records.texi Deprecate copy-record in favor of copy-sequence 2017-04-07 18:54:40 -07:00
searching.texi Add support for Unicode whitespace in [:blank:] 2017-01-06 20:12:48 +01:00
sequences.texi Add seq-set-equal-p to test for set equality 2017-05-04 11:32:58 +02:00
spellfile
streams.texi Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
strings.texi Tune ‘format’ after recent fix 2017-06-04 08:42:53 -07:00
symbols.texi Update copyright year to 2017 2016-12-31 19:42:26 -08:00
syntax.texi Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
text.texi Index 'rectangle' in the ELisp manual 2017-07-22 11:41:09 +03:00
threads.texi Rudimentary error handling for non-main threads 2017-01-18 18:00:16 +02:00
tips.texi Merge from origin/emacs-25 2017-04-27 22:03:56 -07:00
two-volume-cross-refs.txt Update copyright year to 2017 2016-12-31 19:42:26 -08:00
two-volume.make Update copyright year to 2017 2016-12-31 19:42:26 -08:00
variables.texi ; Fix typo in lispref 2017-08-20 22:31:25 -04:00
windows.texi Fix one more issue reported by Alex (Bug#27999) 2017-08-19 11:23:10 +02:00

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Copyright (C) 2001-2017 Free Software Foundation, Inc.  -*- outline -*-
See the end of the file for license conditions.


README for the Emacs Lisp Reference Manual.

* This directory contains the texinfo source files for the Emacs Lisp
Reference Manual.

* Report bugs in the Lisp Manual (or in Emacs) using M-x report-emacs-bug.
To ask questions, use the help-gnu-emacs mailing list.

* The Emacs Lisp Reference Manual is quite large.  It totals around
1100 pages in smallbook format; the info files total around 3.0 megabytes.

* You can format this manual for Info, for printing hardcopy using TeX,
or for HTML.

* You can buy nicely printed copies from the Free Software Foundation.
Buying a manual from the Free Software Foundation helps support our GNU
development work.  See <http://shop.fsf.org/>.
(At time of writing, this manual is out of print.)

* The master file for formatting this manual for Tex is called 'elisp.texi'.
It contains @include commands to include all the chapters that make up
the manual.

* This distribution contains a Makefile that you can use with GNU Make.

** To make an Info file, you need to install Texinfo, then run 'make info'.

** Use 'make elisp.pdf' or 'make elisp.html' to create PDF or HTML versions.


This file is part of GNU Emacs.

GNU Emacs is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

GNU Emacs is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.