diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-09-10 22:07:30 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-09-10 22:31:23 -0700 |
commit | e22794867d878d53675fcc91d2ef1ad2494a2ff2 (patch) | |
tree | 49339927ea210b509507e704067cfe689145fc00 /etc | |
parent | cf9891e14e48a93bca2065fdd7998f5f677786dc (diff) | |
download | emacs-e22794867d878d53675fcc91d2ef1ad2494a2ff2.tar.gz |
Make copy-directory act like copy-file etc.
Do the special dance with the destination only if it is a
directory name, for consistency with copy-file etc. (Bug#27986).
* doc/emacs/files.texi (Copying and Naming):
* doc/lispref/files.texi (Create/Delete Dirs):
* etc/NEWS: Document this.
* lisp/files.el (copy-directory): Treat NEWNAME as special
only if it is a directory name.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/NEWS | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1285,8 +1285,8 @@ documentation and had inherent races that led to security holes. A call like (rename-file C D) that used the old, undocumented behavior can be written as (rename-file C (file-name-as-directory D)), a formulation portable to both older and newer versions of Emacs. -Affected functions include add-name-to-file, copy-file, -make-symbolic-link, and rename-file. +Affected functions include add-name-to-file, copy-directory, +copy-file, make-symbolic-link, and rename-file. * Lisp Changes in Emacs 26.1 |