diff options
author | thierry volpiatto <thierry.volpiatto@gmail.com> | 2012-02-24 19:04:03 +0100 |
---|---|---|
committer | thierry volpiatto <thierry.volpiatto@gmail.com> | 2012-02-24 19:04:03 +0100 |
commit | 25b2e303b07ba9b68c2749754c6cca88f0ecac91 (patch) | |
tree | 8c3f668f8af2e61649ac6dfa3f3f802f7dc0aca0 /lisp/emacs-lisp/gulp.el | |
parent | 58b65bf58c3527e862afd40b64fb54dc116538d5 (diff) | |
download | emacs-25b2e303b07ba9b68c2749754c6cca88f0ecac91.tar.gz emacs-25b2e303b07ba9b68c2749754c6cca88f0ecac91.tar.bz2 emacs-25b2e303b07ba9b68c2749754c6cca88f0ecac91.zip |
Fix bug#10489: 24.0.92 `dired-do-copy' may create infinite directory hierarchy.
* lisp/files.el (files-equal-p): New, simple equality check between two filename.
(file-subdir-of-p): New, Check if dir1 is subdir of dir2.
(copy-directory): Return error when trying to copy a directory on itself.
Add missing copy-contents arg to tramp handler.
* lisp/dired-aux.el (dired-copy-file-recursive): Same.
(dired-create-files): Modify destination when source is equal to dest when copying files.
Return also when dest is a subdir of source.
Diffstat (limited to 'lisp/emacs-lisp/gulp.el')
0 files changed, 0 insertions, 0 deletions