summaryrefslogtreecommitdiff
path: root/lisp/org/ob-clojure.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-09-10 15:39:24 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2017-09-10 15:46:51 -0700
commit01c885f21f343045783eb9ad1ff5f9b83d6cd789 (patch)
tree366e65100af42e6583e5bbaee70f4d5e853e4f92 /lisp/org/ob-clojure.el
parent52739ffe773eb403f58a6223b7ef64175df58dd7 (diff)
downloademacs-01c885f21f343045783eb9ad1ff5f9b83d6cd789.tar.gz
emacs-01c885f21f343045783eb9ad1ff5f9b83d6cd789.tar.bz2
emacs-01c885f21f343045783eb9ad1ff5f9b83d6cd789.zip
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.
Diffstat (limited to 'lisp/org/ob-clojure.el')
0 files changed, 0 insertions, 0 deletions