From: Paul Eggert <eggert@cs.ucla.edu>
To: Andrew Christianson <emacs@a.ndrew.pw>
Cc: 28451@debbugs.gnu.org
Subject: bug#28451: 26.0.50; copy-directory no longer creates parent directories of target if they do not exist
Date: Wed, 13 Sep 2017 18:22:21 -0700 [thread overview]
Message-ID: <ec582a39-637a-2a3a-5440-c17254dc1b14@cs.ucla.edu> (raw)
In-Reply-To: <2C7AE27C-70E2-46FB-A6E5-305FD645362D@a.ndrew.pw>
Thanks for the bug report and test case. I cannot reproduce the problem
on Fedora 26 x86-64.
What are the permissions on the files and directories involved? E.g.,
'cd; ls -lR a test'.
I have a sneaking suspicion that the problem lies in the recent changes
I made to make-directory (commit
cf9891e14e48a93bca2065fdd7998f5f677786dc). Can you please try something
like this:
cd
rm -fr a test
mkdir -p a test/{a,b,c,d}
strace -o tr path/to/emacs -Q -batch -eval '(copy-directory "~/test" "~/a/new/directory/" t t t)'
grep mkdir tr
Here's what I observe on Fedora:
mkdir("/home/eggert/a/new/directory/a", 0777) = -1 ENOENT (No such file or directory)
mkdir("/home/eggert/a/new/directory", 0777) = -1 ENOENT (No such file or directory)
mkdir("/home/eggert/a/new", 0777) = 0
mkdir("/home/eggert/a/new/directory", 0777) = 0
mkdir("/home/eggert/a/new/directory/a", 0777) = 0
mkdir("/home/eggert/a/new/directory/b", 0777) = 0
mkdir("/home/eggert/a/new/directory/c", 0777) = 0
mkdir("/home/eggert/a/new/directory/d", 0777) = 0
which has the desired behavior. If Darwin doesn't have strace, please use the equivalent there to trace system calls
If you don't have an strace equivalent, please try make-directory and see whether it has a similar problem:
cd
rm -fr a
mkdir a
path/to/emacs -Q -batch -eval '(make-directory "a/new/directory/a" t)'
ls -al a/new/directory/a
next prev parent reply other threads:[~2017-09-14 1:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-13 20:33 bug#28451: 26.0.50; copy-directory no longer creates parent directories of target if they do not exist Andrew Christianson
2017-09-14 1:22 ` Paul Eggert [this message]
2017-09-14 4:34 ` Andrew Christianson
[not found] ` <97E0F6C6-FDDF-432A-823C-578013696243@gmail.com>
2017-09-17 20:15 ` Paul Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ec582a39-637a-2a3a-5440-c17254dc1b14@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=28451@debbugs.gnu.org \
--cc=emacs@a.ndrew.pw \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).