From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs 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 Organization: UCLA Computer Science Department Message-ID: References: <2C7AE27C-70E2-46FB-A6E5-305FD645362D@a.ndrew.pw> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1505352191 23064 195.159.176.226 (14 Sep 2017 01:23:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 14 Sep 2017 01:23:11 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 Cc: 28451@debbugs.gnu.org To: Andrew Christianson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 14 03:23:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsIry-0005uI-PJ for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Sep 2017 03:23:06 +0200 Original-Received: from localhost ([::1]:45289 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsIs5-0000Qi-Uv for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Sep 2017 21:23:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsIry-0000QR-18 for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2017 21:23:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dsIru-0000Y5-RL for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2017 21:23:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58772) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dsIru-0000Xy-Md for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2017 21:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dsIru-0004Xl-GX for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2017 21:23:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <2C7AE27C-70E2-46FB-A6E5-305FD645362D@a.ndrew.pw> Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Sep 2017 01:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28451 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28451-submit@debbugs.gnu.org id=B28451.150535215117407 (code B ref 28451); Thu, 14 Sep 2017 01:23:02 +0000 Original-Received: (at 28451) by debbugs.gnu.org; 14 Sep 2017 01:22:31 +0000 Original-Received: from localhost ([127.0.0.1]:39220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsIrP-0004Wh-7Z for submit@debbugs.gnu.org; Wed, 13 Sep 2017 21:22:31 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:52584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsIrN-0004WS-Qy for 28451@debbugs.gnu.org; Wed, 13 Sep 2017 21:22:30 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 126C3160C05; Wed, 13 Sep 2017 18:22:23 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id MBNylajiDdFt; Wed, 13 Sep 2017 18:22:22 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 48EED160CE3; Wed, 13 Sep 2017 18:22:22 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 33e1reCeaQWu; Wed, 13 Sep 2017 18:22:22 -0700 (PDT) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 2FEFE16098B; Wed, 13 Sep 2017 18:22:22 -0700 (PDT) Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136948 Archived-At: 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