]> git.eshelyaron.com Git - emacs.git/commit
Fix recently-introduced copy-directory bug
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 Sep 2017 19:56:00 +0000 (12:56 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 Sep 2017 20:06:54 +0000 (13:06 -0700)
commit37b5e661d298cbfe51422cd515b6696a1cdaa868
treebd37e0f404e7061640f89de39b33968d8df29076
parent6bbbc38b3421723521f7cdd4fd617a4fc889aceb
Fix recently-introduced copy-directory bug

Problem reported by Andrew Christianson (Bug#28451):
* lisp/files.el (copy-directory): If COPY-CONTENTS, make the
destination directory if it does not exist, even if it is a
directory name.  Simplify, and omit unnecessary test for an
already-existing non-directory target, since make-directory
diagnoses that for us now.
* test/lisp/files-tests.el (files-tests--copy-directory):
Test for this bug.
lisp/files.el
test/lisp/files-tests.el