From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: adam plaice Newsgroups: gmane.emacs.bugs Subject: bug#28520: 26.0.50; Dired recursive copy of directory fails Date: Tue, 19 Sep 2017 23:34:43 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1505861058 27506 195.159.176.226 (19 Sep 2017 22:44:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 19 Sep 2017 22:44:18 +0000 (UTC) To: 28520@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 20 00:44:11 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 1duRFR-0006d7-O2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Sep 2017 00:44:09 +0200 Original-Received: from localhost ([::1]:45748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duRFX-0007i1-Lx for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Sep 2017 18:44:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duRFN-0007hK-PV for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 18:44:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duRFM-0008JE-KG for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 18:44:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40115) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duRFM-0008J5-GC for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 18:44:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1duRFM-0000IV-6S for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 18:44:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: adam plaice Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Sep 2017 22:44:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28520 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15058609841057 (code B ref -1); Tue, 19 Sep 2017 22:44:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Sep 2017 22:43:04 +0000 Original-Received: from localhost ([127.0.0.1]:48794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duREM-0000Go-IP for submit@debbugs.gnu.org; Tue, 19 Sep 2017 18:43:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49193) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duR6U-00005N-SO for submit@debbugs.gnu.org; Tue, 19 Sep 2017 18:34:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duR6O-0007bb-NX for submit@debbugs.gnu.org; Tue, 19 Sep 2017 18:34:49 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56073) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1duR6O-0007bP-KJ for submit@debbugs.gnu.org; Tue, 19 Sep 2017 18:34:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duR6N-0005rl-1g for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 18:34:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duR6L-0007Z5-R4 for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 18:34:47 -0400 Original-Received: from mail-yw0-x234.google.com ([2607:f8b0:4002:c05::234]:53170) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duR6L-0007Yp-MZ for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 18:34:45 -0400 Original-Received: by mail-yw0-x234.google.com with SMTP id i6so743733ywc.9 for ; Tue, 19 Sep 2017 15:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to :content-transfer-encoding; bh=Y/dhR6Oy2kyJNjUPkVmEZIdVaHrYpL3rVc5Beptkds4=; b=h1NfVNmkTs1bXeuI5gkwry0/MrBZbaf1TXc5iET2UOYuSDs+jIgZAdVlWdDlST0ScR hdQsB9vkaOTKlz4+5BxOaJZszVACXma5izHgQIQSCE6MiDeWDihx1ufvcuKYmZh/zY7z Vn2TAebPflsvmd5M5+fUMmREnp85nvya507dwf4KJMNjsvprNPFGXrV1y1ApWtjv24ru 09nFb576r94GBOOl2DcAcXxySdXDv2Do8/sjyx2VYWC81cVH0CI8vnFPCxXKTeyrA3du 9AAVBngQTHrfWdRukQUqsvT+LVr7QyicEZMQQfFp8gfdRw1cv56hFy7Rin8LGptD+YP6 ggEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:content-transfer-encoding; bh=Y/dhR6Oy2kyJNjUPkVmEZIdVaHrYpL3rVc5Beptkds4=; b=cSIqf+m9HjIIGif19P5NueCeVXT/psZV1/PPaau5Zw4K/zEXwrYHdLUPgty3fVOzYV Qlfj++KnZNm1JMgfeGL4NnKR/Lk8S98JhXTgJDdhTq+nl/KTOEaQuojK1OeSqN/jJ87a lbZ3luX4Vr6wOTDnkKJ1Bq0WM24rDOuHMlQVt38ZkDoFtLxTDgX09+3/s49RnQjH4xz2 mOigcD0uLZalruwsk3HP2h2HjPWfWcU6TPn3Bt8cHfyRvkqYvrZl8lcX4g9zAU4kMbF3 +oeHLtur5VAO9WMweW9CDwy8wS9NcX7iCVvB53dTD8o4rsCHzWMDfOZRYmdwAyzfJQq7 mP6Q== X-Gm-Message-State: AHPjjUiaNrkkxR45uzET/Bff/XvFJ7hGT/awNkTyuHOU9szq/A8YHnkO iiE7MnNVl4jjjG0edmmw9k76SsRe9tu9txplJ2dA9w== X-Google-Smtp-Source: AOwi7QB+55RhD0NDRSrqGSyRotHBPwd0jFPKZk8i+yu7kls9tE5myw0VX088JyBNkAdTxUjCrmb7i7vCEvDpORgIvvQ= X-Received: by 10.37.189.69 with SMTP id p5mr1983965ybm.128.1505860484815; Tue, 19 Sep 2017 15:34:44 -0700 (PDT) Original-Received: by 10.37.216.131 with HTTP; Tue, 19 Sep 2017 15:34:43 -0700 (PDT) X-Google-Sender-Auth: SuyeTRe28bWND3SgyrEW5kI8Opk X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Tue, 19 Sep 2017 18:42:59 -0400 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:137155 Archived-At: Copying a directory recursively, with dired ("C"), fails. To reproduce: mkdir test_dired_copy/a1/b -p cd test_dired_copy emacs -Q --eval '(dired ".")' In dired, execute `dired-do-copy' (kbd "C") on the `a1' directory, select `a2' (within the same parent directory) as the destination, and answer `yes' to (`Recursive copies of ...?'). *Dired log* contains (in my specific case): Copy =E2=80=98/home/adam/test_dired_copy/a1=E2=80=99 to =E2=80=98/home/adam= /test_dired_copy/a2=E2=80=99 failed: (file-already-exists File exists /home/adam/test_dired_copy/a2) Copy failed for 1 of 1 file The result is that the directory `a2' is created, but the subdirectory `b' is not created within it. (For repeated testing, `a2' has to be deleted each time.) I think (though I'm not completely sure) that the problem can be traced to copy-directory, since the following elisp fails as well: (copy-directory "/home/adam/test_dired_copy/a1" "/home/adam/test_dired_copy= /a2") or equivalently (if already within the directory): (copy-directory "a1" "a2") The regression occurred in the commit range 52739ffe773eb403f58a6223b7ef64175df58dd7..e22794867d878d53675fcc91d2ef1ad24= 94a2ff2 (I have not had time to rebuild emacs sufficiently many times and check which exact commit is responsible). The bug is present in the heads of both the emacs-26 (4bef92e9e02d074de1d92e30dc5ef4dd62558c80) and master (b1f83c10df7d1bbb16f4e13d18119ad4aa1a2137) branches. Thank you, Adam In GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2017-09-13 built on adam Repository revision: 4bef92e9e02d074de1d92e30dc5ef4dd62558c80 Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.3 LTS Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --with-modules --without-pop' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message subr-x puny cl-macs seq byte-opt gv bytecomp byte-compile cconv format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired-aux cl-loaddefs cl-lib dired dired-loaddefs elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 100826 7691) (symbols 48 20537 1) (miscs 40 52 193) (strings 32 28786 1222) (string-bytes 1 745696) (vectors 16 15163) (vector-slots 8 497313 9957) (floats 8 48 124) (intervals 56 824 11) (buffers 992 15) (heap 1024 24906 1131))