From unknown Thu Aug 14 21:49:35 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#68805 <68805@debbugs.gnu.org> To: bug#68805 <68805@debbugs.gnu.org> Subject: Status: 29.2; Tramp: out-of-band copy-file fails when tramp-copy-keep-date is nil Reply-To: bug#68805 <68805@debbugs.gnu.org> Date: Fri, 15 Aug 2025 04:49:35 +0000 retitle 68805 29.2; Tramp: out-of-band copy-file fails when tramp-copy-keep= -date is nil reassign 68805 emacs submitter 68805 Sean Devlin severity 68805 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 29 17:27:09 2024 Received: (at submit) by debbugs.gnu.org; 29 Jan 2024 22:27:09 +0000 Received: from localhost ([127.0.0.1]:33649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUa5s-0007hy-Ua for submit@debbugs.gnu.org; Mon, 29 Jan 2024 17:27:09 -0500 Received: from lists.gnu.org ([2001:470:142::17]:48656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUa5q-0007hS-La for submit@debbugs.gnu.org; Mon, 29 Jan 2024 17:27:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rUa5c-0004Wn-HE for bug-gnu-emacs@gnu.org; Mon, 29 Jan 2024 17:26:52 -0500 Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rUa5a-0002Ko-BL for bug-gnu-emacs@gnu.org; Mon, 29 Jan 2024 17:26:52 -0500 Received: by mail-qt1-x82d.google.com with SMTP id d75a77b69052e-42a99cbb4bbso13302841cf.0 for ; Mon, 29 Jan 2024 14:26:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20230601.gappssmtp.com; s=20230601; t=1706567206; x=1707172006; darn=gnu.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=YjqEYGumpWg2NMivspz+7tizGxszSppH8i3ODUSPud8=; b=skpjsR005hgjvVZwNgxhvCf3TrOnkDUtmT9sWudkzLL/wgyo0D+ub1eF8ihIVc1mR1 zVC7u41i5++xPMVgPkJT8zqcRlkpidbpWvgs+NmqayTNpp5tKVZovFA504uQNPyL678Z xC/miSzpb76wH/LecG2vrnqqAetuz8JYuBpkiZq0DKT6RZlNQUh7JBFQCuDAtF5ptj1z S5iiBEpbNP91LfgqzJtzfDvD0mU0D3ZmtMfQmZwciCYEHJACpV7U1HvDBS6vNc4iR3N+ lRk9UCdLlEI7rafC64PUe5FnQG6EqPfiZjL4GlhueQV5GyBTs6r0qYvWzAsZFSjfcAz1 rQ+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706567206; x=1707172006; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YjqEYGumpWg2NMivspz+7tizGxszSppH8i3ODUSPud8=; b=TduOQ5gyXP+DzxExr0nhXpvmzTA/hqI7yF9vc9hLXceh1g/imJma1iNn1qkRsQldXe 2FvSLTlgbEw9k23V5Q4EVz1IIkFfLLtayaU5xsg3tIyCIH8tfab2f39iBWGTe01IdmIS zfmr0CSZlO6HxHQZ8h6oA+eEJwYZ4BgFCvohr/TeL6IQ5Jw/46okaaXA4uQOQFzV3kJw jZVYQDWBSmtPYUO8MUcrmH8h2BrHc9FKhTRpEKSt76hxscYDun2e+zzgFX71EfuESLpi 5SRu+wNPSPT4PWtqgsBqLphoVcXWdSRxB6z0evNQMAxox+qd0InvAZ+yyPx9nE3cLW0O RYPA== X-Gm-Message-State: AOJu0Yy0xuMZUCT8XIEt9YU8WHwTYcQuftBhoL9PCazCXNONnFD18vWk HMnRm5ex1NKJnFDMw2/LHkQz7QLoTmdGr4Let6pcsNkUX3uVKadpk36dX1X4ZSVP5kJS5eVirzw v X-Google-Smtp-Source: AGHT+IGFYRwErE2nJBAFTzKbhL11guI4BmWGgMSEq3Ua0NaDfdh+UvPaRGG3IQRWRw3m8zdDwBPqgw== X-Received: by 2002:ac8:67d7:0:b0:42a:88ef:49b5 with SMTP id r23-20020ac867d7000000b0042a88ef49b5mr6408449qtp.41.1706567206164; Mon, 29 Jan 2024 14:26:46 -0800 (PST) Received: from smtpclient.apple ([2620:149:13c1:500::1dc]) by smtp.gmail.com with ESMTPSA id cp7-20020a05622a420700b0042a6859ff3esm2949860qtb.61.2024.01.29.14.26.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jan 2024 14:26:45 -0800 (PST) From: Sean Devlin Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.141\)) Subject: 29.2; Tramp: out-of-band copy-file fails when tramp-copy-keep-date is nil Message-Id: <59B29F53-DEE4-4DDD-BC68-8BB16652633E@toadstyle.org> Date: Mon, 29 Jan 2024 17:26:41 -0500 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3774.500.141) Received-SPF: pass client-ip=2607:f8b0:4864:20::82d; envelope-from=spd@toadstyle.org; helo=mail-qt1-x82d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi folks, I created a custom Tramp method with support for out-of-band file transfer using tramp-copy-program, and I left tramp-copy-keep-date unset. When I try to copy a file to the remote using copy-file with the keep-date argument set to t, the transfer succeeds, but Emacs raises an error. If I set tramp-copy-keep-date to t, there is no error. You can reproduce the error by modifying the scp method: 1. Emacs -Q 2. Evaluate these forms: (setf (alist-get 'tramp-copy-keep-date (alist-get "scp" tramp-methods nil nil #'string-equal)) '(nil)) (copy-file "/path/to/bigfile" "/scp:your-remote:bigfile" nil t) 3. Emacs will raise a file-missing error 4. Type q to dismiss the backtrace 5. Evaluate: (dired "/scp:your-remote:") 6. Verify the file was transferred despite the error I think the issue is due to caching. Before copying, Tramp checks to see if the file exists, and it does not. After the transfer, Tramp tries to check again because the keep-date argument was set, tramp-copy-keep-date is nil or unset, and Tramp wants to set the file time manually. Instead of actually doing this file existence check, Tramp instead gets the property from cache that was set just prior to the file transfer. It then raises a file-missing error. Thanks, Sean In GNU Emacs 29.2 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.6.6 (Build 21G646)) of 2024-01-18 built on armbob.lan Windowing system distributor 'Apple' System Description: macOS 14 Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules 'CFLAGS=-DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT' --with-x-toolkit=no' Configured features: ACL GLIB GMP GNUTLS JPEG JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-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 line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-fns radix-tree debug backtrace help-mode find-func tramp-cmds cl-print ielm pp tramp-cache time-stamp tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat rx shell pcomplete comint ansi-osc ring parse-time iso8601 time-date format-spec auth-source cl-seq eieio eieio-core cl-macs cl-loaddefs cl-lib password-cache json subr-x map byte-opt gv bytecomp byte-compile ansi-color rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 88380 7496) (symbols 48 8801 0) (strings 32 27273 1929) (string-bytes 1 912327) (vectors 16 18170) (vector-slots 8 252906 8762) (floats 8 42 224) (intervals 56 1620 55) (buffers 984 16)) From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 01 08:29:34 2024 Received: (at 68805) by debbugs.gnu.org; 1 Feb 2024 13:29:34 +0000 Received: from localhost ([127.0.0.1]:40599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVX8H-0002uY-Mu for submit@debbugs.gnu.org; Thu, 01 Feb 2024 08:29:33 -0500 Received: from mout.gmx.net ([212.227.17.21]:58997) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVX8E-0002uK-5W for 68805@debbugs.gnu.org; Thu, 01 Feb 2024 08:29:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1706794153; x=1707398953; i=michael.albinus@gmx.de; bh=3Qio+b53kat0kSxKgGEphTIB5KmaVApBrmTPIv92XLg=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=KRSNG1mrp2VTV02B+1F6Nij6C86wdc3UDWdsZq6+VbrzJAtDd0EKms1ABXDiGXki OfJKC4Fdv/XnUT8H11EEJnJWQbQsgjgPMswcDhDtgHaA07jyw0PYMe9x6Dj5+pofL yXQ5xTDRHN6DDNQvno75AviXzIYyPpJD1rvMFNuEwx+ssfH1tLuvsuw+g1/MAEtq6 Ws6K2HSm0BA8fBmISje2OU1b9n9VOZinvtChBCdd37QDQf23/53NG+6oA0nAv40uh 4HyLkXxxLJmqAK0f1e4tTdRAvvMZY+wuk3hXoKRvav0WgZHBzFhNU1N8KCDAlVdOQ Flgdwi+TTwKGMnlMRQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.16]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mf0BG-1qp1Zj1oOA-00gXZs; Thu, 01 Feb 2024 14:29:13 +0100 From: Michael Albinus To: Sean Devlin Subject: Re: bug#68805: 29.2; Tramp: out-of-band copy-file fails when tramp-copy-keep-date is nil In-Reply-To: <59B29F53-DEE4-4DDD-BC68-8BB16652633E@toadstyle.org> (Sean Devlin's message of "Mon, 29 Jan 2024 17:26:41 -0500") References: <59B29F53-DEE4-4DDD-BC68-8BB16652633E@toadstyle.org> Date: Thu, 01 Feb 2024 14:29:12 +0100 Message-ID: <87frycgvo7.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:JlnGcyBmJWSqy3+OwHrXk1VCjvWWRXmJ1myMxnBKeICa7BCBWSr EJSHRa+ggC1J5Z/UQtbgzEFq+Gg3VZU7160waZ9tzZUmehwOIhUGNo73PKA3Pc2ov3Erhux aYUxPuAbsE2KgJZ1uRPcF1WxX/ld5idH1xMMoEj763nS3DPckuyGzaqgE/70eUY7Xq9udwr 4WfQdyLobP5+tXWtbmq5A== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:Ajq9l0sy520=;2jhj1lE3TkIWzWUhvDSLwO7tQWT BM7pxFDUdOFjtKiGi4IH8QMfYZ22RlVVKWXmKsxgSBX5Q/4EgxVR5ejZBOmwmfnunM4wFH+sV ZAZlBHqihOkJ1mwteSVfNHFTRZ+o9bTf6KSFs/SbqM0pJ07d+7ixkEgk8XZ5rhDYJw5G0HuNg SBHPG9YNEM1gSNb6DgnBoovZ/AUgCrHGxsfoDsZ0orWgV74y3rUs+v26B/qdqc3qtqVidp4ZD Z2uJOB7Zgr77iV6Y5k1pjHr3b7++uPdlP422pV5MBpHi9M/HLELw1+ReENMulLwj3IDBf6TJB Z+KsVJKy5lH1ZfPuAVWXXKABioFvXcWcibGUibvXRlx6sY7YI07tekTdliqclT7O4Rf8iASk6 5z3CNLj1numUKOAZcA4boNS26UyZ97Z8XZWNxZrHM3xEdSYHKbdR9OHjfVyVLNggCY9MmMrMm V1gEqD1TKkKL1KHJs3FhjreqFKNusM1fufc0yQGs/U1DF9rHQVEIzVqIO+T9qDh6fBG861Ub6 ibVJyWcuqZSDoOZLQltfIED3vd1d0obwH3EPN0YEBeZOUPOXhzTzVXPzZzRUyFf6XGNerkde7 h9OshQdKve8Fq9iPmEYT6RqAJ6amnjSmQn7Zl2mJcZm2L19v6H10YaJk7jNolQ9OFSPbpmsPK Vdsjglo57dM1TTX2glYz0EkttMfQ+zm0ZleSim9mntIRxsCmAbMVcIAEEk0YUKQWi4tQlx7yu 5XO0iQBVNWpXBlK5HZ/FeWsEs9Dz/S/RXS8V3W2s87SR9sGqYeV3472pZiUWzQ8/AjNLLoCO+ XZHEy2rdoTghhZ2ODG3bH28WWkVboYsCCbI2f3m+d1MmHhDVEpRDAbIRvSHL1Onuf3 X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Sean Devlin writes: > Hi folks, Hi Sean, Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.89.39.16 listed in zen.spamhaus.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [212.227.17.21 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.21 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (michael.albinus[at]gmx.de) 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Debbugs-Envelope-To: 68805 Cc: 68805@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Sean Devlin writes: > Hi folks, Hi Sean, Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.89.39.16 listed in zen.spamhaus.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [212.227.17.21 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.21 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (michael.albinus[at]gmx.de) 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 T_SCC_BODY_TEXT_LINE No description available. -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= Content-Type: text/plain Sean Devlin writes: > Hi folks, Hi Sean, > I think the issue is due to caching. Before copying, Tramp checks to see > if the file exists, and it does not. After the transfer, Tramp tries to > check again because the keep-date argument was set, tramp-copy-keep-date > is nil or unset, and Tramp wants to set the file time manually. Instead > of actually doing this file existence check, Tramp instead gets the > property from cache that was set just prior to the file transfer. It > then raises a file-missing error. Thanks for the report and the analysis. It is correct. Could you please check, whether this patch fixes it: --=-=-= Content-Type: text/x-patch Content-Disposition: inline Content-Transfer-Encoding: quoted-printable diff --git a/lisp/tramp-sh.el b/lisp/tramp-sh.el index 1301cd63..50a33cc3 100644 =2D-- a/lisp/tramp-sh.el +++ b/lisp/tramp-sh.el @@ -2521,6 +2521,10 @@ The method used must be an out-of-band method." ;; cached password). (tramp-cleanup-connection v 'keep-debug 'keep-password)))) + ;; The cached file properties might be wrong if NEWNAME didn't + ;; exist. Flush them. + (tramp-flush-file-properties v (tramp-file-local-name newname)) + ;; Handle KEEP-DATE argument. (when (and keep-date (not copy-keep-date)) (tramp-compat-set-file-times --=-=-= Content-Type: text/plain > Thanks, > > Sean Best regards, Michael. --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 01 08:49:42 2024 Received: (at 68805) by debbugs.gnu.org; 1 Feb 2024 13:49:42 +0000 Received: from localhost ([127.0.0.1]:40614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVXRm-0003a8-7Y for submit@debbugs.gnu.org; Thu, 01 Feb 2024 08:49:42 -0500 Received: from mout.gmx.net ([212.227.15.18]:34277) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVXRh-0003Zb-6r for 68805@debbugs.gnu.org; Thu, 01 Feb 2024 08:49:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1706795360; x=1707400160; i=michael.albinus@gmx.de; bh=/BkGeeBSHp5t7X+M4m63OTGtnQ2xNIDuBL3cdxb/mHg=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=sn2QPGNsckof+RMFwu6ptjocHjyWEP8DBzowDD63DRH4OaPIMc7oPBwfGe+g2flh ztOcq7Ih2uEEDmIbsQUNoaYgwds9EXizYqMJdA5bHyktGJ6wpnmWvP3dkHsoVgjuf vRrL5ZpSBLjZ3LTEblE/G14QsNUcLDQbaWP9InsRylJdID7ImXwBz4YtE53uQ+JBZ 4rmAI350XnvBWOSLSPwPxevijS8gUqJdO+27OLx81aIzuzcfyOMtqI2LC/HqPH891 QlaM4fLgaBOrdSrYVAzE+eLtN/vzHwzaysvFWq59tzIFmbYzngP30vrmeNTGh1Bsd C2s5v1Ffhi5RzrIkqQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.16]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MmlXA-1qnvU60NgU-00jpsz; Thu, 01 Feb 2024 14:49:20 +0100 From: Michael Albinus To: Sean Devlin Subject: Re: bug#68805: 29.2; Tramp: out-of-band copy-file fails when tramp-copy-keep-date is nil In-Reply-To: <87frycgvo7.fsf@gmx.de> (Michael Albinus via's message of "Thu, 01 Feb 2024 14:29:12 +0100") References: <59B29F53-DEE4-4DDD-BC68-8BB16652633E@toadstyle.org> <87frycgvo7.fsf@gmx.de> Date: Thu, 01 Feb 2024 14:49:19 +0100 Message-ID: <87a5okguqo.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:WF92s9egOZ8+/K8xQw8wcwj9Z0xxLqgaHbrIMhEd8XXefiuEnw2 ZbzmmJ7hZqkPZM6i3PvS/No3dMmunsVrEijq96JOATnXtOdoPHPFSj5KzmyDOgJKfC0efFO s7JKp/oY4CK9h1tQyAcTjuDqNGiZ6EhF7aa2HltDbvG2iw47sOsOd0tfQgexzx+92ahRJsV r7yjp//c2ZVmGEUDdRmsw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:PupewyF2mlA=;RExCzuIfwMCuQJSZcep8iEW9x88 RqSizmQsAe2/0NfycmEEQkk5P/VggUABL7tDjqSJUBIcUNeB0ctMb6/hMuBVPZUhi6vsYc7N0 nPOL6GpgD1L2JLOMPluKWbl5jH4qaiDBQGE/icKK6yoBLaGHUm2XEDJDvVWAXmntOjVdVZ3XY Qu0cahN/kybNB9wsEs0YriAtLwZhYpBfGJrpqQ9bsWTFjxAV0znTPkozf/6eaP8Kb67s/vXZP 25iegUdCFMK8PyABvKHJefZiVrXGBGJobNsCD61CYkrUrdYZHhwEaxrFB6Bvn82ys9GnLCWz2 IWDyT/WN0Syj/jT9f+mV5wE8sLf9wBX14rcD2L0FlXbE6zAJNTjSAkoTjTjcojv4LDRsMJ7Tx 9a7OPYO99+/fBPRmNycfNqCk/ZFKKSusBgdmvtGCcAwWRE4/yMqaHPdvJAGHVY2leA/gwOP9P UJ28gPkgvZPAoUmF4zFOiRW5AQrjMuFiyCaJ65Y6HAGJ3SnCs5SBiJ5arQr5E8UZ4Px7kos4+ dxmfwfFcURnCBoEm+rI49gZZqAgwhYalXBAn6RTI1gfgePng5qNvRy0PZk2qvlw73wJE4HafC LPW5FlUpajig1suMp7i8MuLcaUFPptYFYo5V7m8yUMx6EDYtyzOLMNFNoJZiTeoDmBIuwHalX F/fCpX3H4N4OPX2bw8s0BNZ4A9hPDBX5D1a/7MpNCW1Q6gNjXQyrevFF5yggCbQcQsJT/IcGR N66EaOTWy8NL0N7Bi3hhGHxseOo2gJFqC0WrcTARgCp3y6TszbLq3NzFXqJFbE8h4PDggJ3nN QCIhy8VVvtCJ83YJEzM/aGblqsVOW+BF2T/UdMiAIdNlujsKxwpHWj1J0coHhpHbW7 X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: Hi Sean, > Thanks for the report and the analysis. It is correct. Could you please > check, whether this patch fixes it: Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.89.39.16 listed in zen.spamhaus.org] 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [212.227.15.18 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (michael.albinus[at]gmx.de) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.18 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Debbugs-Envelope-To: 68805 Cc: 68805@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: Hi Sean, > Thanks for the report and the analysis. It is correct. Could you please > check, whether this patch fixes it: Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.89.39.16 listed in zen.spamhaus.org] 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [212.227.15.18 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.18 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (michael.albinus[at]gmx.de) 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 T_SCC_BODY_TEXT_LINE No description available. -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= Content-Type: text/plain Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: Hi Sean, > Thanks for the report and the analysis. It is correct. Could you please > check, whether this patch fixes it: Oops, that's too lax. Pls try the following instead: --=-=-= Content-Type: text/x-patch Content-Disposition: inline Content-Transfer-Encoding: quoted-printable diff --git a/lisp/tramp-sh.el b/lisp/tramp-sh.el index 1301cd63..44c0bdc7 100644 =2D-- a/lisp/tramp-sh.el +++ b/lisp/tramp-sh.el @@ -2521,6 +2521,12 @@ The method used must be an out-of-band method." ;; cached password). (tramp-cleanup-connection v 'keep-debug 'keep-password)))) + ;; The cached file properties might be wrong if NEWNAME didn't + ;; exist. Flush them. + (when v2 + (with-parsed-tramp-file-name newname v2 + (tramp-flush-file-properties v2 v2-localname))) + ;; Handle KEEP-DATE argument. (when (and keep-date (not copy-keep-date)) (tramp-compat-set-file-times --=-=-= Content-Type: text/plain Best regards, Michael. --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 01 10:35:09 2024 Received: (at 68805) by debbugs.gnu.org; 1 Feb 2024 15:35:09 +0000 Received: from localhost ([127.0.0.1]:43017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVZ5p-0007WA-65 for submit@debbugs.gnu.org; Thu, 01 Feb 2024 10:35:09 -0500 Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]:47397) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVZ5j-0007VN-Qt for 68805@debbugs.gnu.org; Thu, 01 Feb 2024 10:35:07 -0500 Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-78407987510so53911385a.3 for <68805@debbugs.gnu.org>; Thu, 01 Feb 2024 07:34:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20230601.gappssmtp.com; s=20230601; t=1706801688; x=1707406488; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=DmDFcFjbM58fsOlOqvi+24NAL/PcFIYuIktvrr6rPYc=; b=oxViL4AvwdKEbZhzHl26g2a+f6+RbjpZDq0MoLlNyCbB7TfbtPEweGmJ5DjOsBz1vG /DTyBRyW6CILNmUjZ+MlQMUs5Z6fzuUoOiiCDUmUIm+tE0+b3FiexTZediz51Y7f1Tit UMAkBoaJizpHe7Hxocjp6SOUrYZRapPC+Q7e+uBHUdYHsGUkw1mMhFHLgZ/or/3TQqDz RgVX66Kk0zme422LL/+lmXE832RZ9pd2imeA6fUSUyEBpX8HkK+L0YyF+2Ok8hYS13yl oUW55d1wjsBKKWvNP0hT+TtmmqYXf/MVjJHI6HeBLkWgm19DiE93x1gW2MD+6kySuU3I b+Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706801688; x=1707406488; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DmDFcFjbM58fsOlOqvi+24NAL/PcFIYuIktvrr6rPYc=; b=uPAja8VcNNMhcxGuQrkPgGKDp1pVDDAvYS6fXrTKr509bGU7UqRiC9yB+bRBTldC7e Nc+Dek9r+UtRr6kJMiL0o6MJAKNAWA0stpAVFNmPOPhWxsZE8BVJ0ON6tTcfTenXJQRl pHknOf2lrfntitjRcJyUXFjld84+ssTpdkckNvNDssE3xexY+dL9ud6KdrKUIgwNRbJN df7L3agV1+aYXksiI3IDVgWE+Scx+KAPbUdlxBSMbkkQNJSTzXnMnL9B0B524fLH/yJA Df5sFP9pClj7Fv/s12HoHc7fmHWLtRryO8MNXrUxrZUO48cX6e/yQ6PMt2CNUNujeyE0 BX6A== X-Gm-Message-State: AOJu0Yz+a1dlEPKAE+8BMLG1ntJ2a9/Lv/CdKxL/a1U648yI9L0vsi6F CxtHGYO3NLn51I1h9Wet/n6LWtgX4zZ+kzv2oCDgZ9Rzm03E/01gvwYMo6KGfhWhPb42d8QoiK/ W X-Google-Smtp-Source: AGHT+IHvsrzFSDE/skB9J9YtBJuUhuzuj6StY4jPVDjBj0+MW46bcIOYlqBNvGLXR8THMYLcRcpVrw== X-Received: by 2002:a05:620a:4594:b0:783:8c5b:8d1b with SMTP id bp20-20020a05620a459400b007838c5b8d1bmr3140548qkb.14.1706801687908; Thu, 01 Feb 2024 07:34:47 -0800 (PST) Received: from smtpclient.apple ([17.44.248.117]) by smtp.gmail.com with ESMTPSA id s17-20020a05620a031100b0078403269190sm3027724qkm.36.2024.02.01.07.34.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Feb 2024 07:34:47 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.141\)) Subject: Re: bug#68805: 29.2; Tramp: out-of-band copy-file fails when tramp-copy-keep-date is nil From: Sean Devlin In-Reply-To: <87a5okguqo.fsf@gmx.de> Date: Thu, 1 Feb 2024 10:34:36 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <55A934E6-19B9-4EFC-BA64-25F35E4115B4@toadstyle.org> References: <59B29F53-DEE4-4DDD-BC68-8BB16652633E@toadstyle.org> <87frycgvo7.fsf@gmx.de> <87a5okguqo.fsf@gmx.de> To: Michael Albinus X-Mailer: Apple Mail (2.3774.500.141) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68805 Cc: 68805@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Michael, I can confirm the below patch fixes the issue. Thanks for your help! Regarding the comment, couldn=E2=80=99t some cached file properties = (i.e. other than file-exists-p) be wrong even if NEWNAME did already exist? I haven=E2=80=99= t really thought this through, just curious. Thanks! > On Feb 1, 2024, at 8:49=E2=80=AFAM, Michael Albinus = wrote: >=20 > Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife = of > text editors" writes: >=20 > Hi Sean, >=20 >> Thanks for the report and the analysis. It is correct. Could you = please >> check, whether this patch fixes it: >=20 > Oops, that's too lax. Pls try the following instead: >=20 > diff --git a/lisp/tramp-sh.el b/lisp/tramp-sh.el > index 1301cd63..44c0bdc7 100644 > --- a/lisp/tramp-sh.el > +++ b/lisp/tramp-sh.el > @@ -2521,6 +2521,12 @@ The method used must be an out-of-band method." > ;; cached password). > (tramp-cleanup-connection v 'keep-debug 'keep-password)))) >=20 > + ;; The cached file properties might be wrong if NEWNAME didn't > + ;; exist. Flush them. > + (when v2 > + (with-parsed-tramp-file-name newname v2 > + (tramp-flush-file-properties v2 v2-localname))) > + > ;; Handle KEEP-DATE argument. > (when (and keep-date (not copy-keep-date)) > (tramp-compat-set-file-times >=20 > Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 01 11:32:59 2024 Received: (at 68805-done) by debbugs.gnu.org; 1 Feb 2024 16:32:59 +0000 Received: from localhost ([127.0.0.1]:43065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVZzm-0000py-MS for submit@debbugs.gnu.org; Thu, 01 Feb 2024 11:32:58 -0500 Received: from mout.gmx.net ([212.227.17.22]:48467) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVZzk-0000pb-JU for 68805-done@debbugs.gnu.org; Thu, 01 Feb 2024 11:32:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1706805159; x=1707409959; i=michael.albinus@gmx.de; bh=ShDoGqRbpIGEBS93L8sCsnSo1kH77G6zXCbb/snpv+U=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=ZNNYtlhlh9GWZcXRkV1Pu+R1FoKfJmcVrg04CPcJZAPiBzd4gX9NW9bGUJ18G0yO q3jXglKicyLI1F1/XE4CjoYRzwPs0tjxBkzTJbDc3w6fLMKDd8HnA1wt8WeSQaMVJ uKyKAgslr2WS9LdZ/foAAxmiLOqZipTsyHA3MPXa0+S0WUQjhLZoHy//1nu0CJ50C IFaPCfN/DI7QrMy+9S9bdA3vGR1xaUUPwU+VrsgPnnw02CV6UTcLJI9BsLV6t3wY2 0dTU3ltkHQHZpaOLp9Q2Bd90bpjb1g1JHR7LwjXOX6YwN8KE1KRFooycLBUFoENs3 1kwhN2ykY75KJ8yATg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.16]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N63VY-1qyR2t2t4q-016QKf; Thu, 01 Feb 2024 17:32:39 +0100 From: Michael Albinus To: Sean Devlin Subject: Re: bug#68805: 29.2; Tramp: out-of-band copy-file fails when tramp-copy-keep-date is nil In-Reply-To: <55A934E6-19B9-4EFC-BA64-25F35E4115B4@toadstyle.org> (Sean Devlin's message of "Thu, 1 Feb 2024 10:34:36 -0500") References: <59B29F53-DEE4-4DDD-BC68-8BB16652633E@toadstyle.org> <87frycgvo7.fsf@gmx.de> <87a5okguqo.fsf@gmx.de> <55A934E6-19B9-4EFC-BA64-25F35E4115B4@toadstyle.org> Date: Thu, 01 Feb 2024 17:32:38 +0100 Message-ID: <875xz8gn6h.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Jc8khznrRTt4PLhLamepYD63Fk/YR+1MOHIeBHSGnzAvKC1hIpG ojxK1SqwjnmnqhxpFSo0xMIsfNan3d9zn79bKz8OmwLmH9bkNFCYLJZFKXHmwMQVMku3iHu cqw/eWhdLk6TM28EfTiBsRD0JEeXys6n8YT57vhCQvzppafzd9pE2Md0luMgo5Mb/HY/r7l XKm1CZUbWIYSdbozZxQjw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:FMwssIAAwWw=;0xkbPPoo0gO0WUwWrEjHLI4hiPG xJgP22ASQmfo9Sx+U+diPeVs8mcyXp3K4jPa74oMj6D3GMa0balLL6NdKge5M9fQGuxWsFNsD /6q/OZ+A6wKF8vAG0Gr7SMSWYNRZx+WK2BLWnuzRWpMB5JOuv/BoVeIAFI9ojW4OFVSST1cUB y2KIPefYsRm7AImE2TMJpGudSbLda2lrQP31ooYzgKcAjFBfJxyvGxwdO3v7CxRBXtzgOcqQg Q+IJq8iANuaTQibvpSTiCokrfO7IYm+VK3A/t6wmxjUH5EnR1sl0ImuIcgAOOJpjXkksAaq4t xIRK7iStsEasl8WSSeCW98AEEJ0Ce35TBSrZKRoydhPlUsjOSMaAjCqK9/PCDeUWd8lqF1Lji 0ts1kL1xiw2Zp1i6QjYh1lJjnw1biCDIC36GEJW8Xw6xCdSB6GSo+8icIHzNZASClf2I1KVr+ c/4nfAknUyrHeLIG6XCmWWju8IWKkE/+Npnim5FrEu5bYSZyFPbJM9uomYopwlh3v54fo844R O+YyUn5MejG6DoyViGMmuhNE8HC3qlk6pB15PuQxHno3J5v/HxNVOhD/Jt26hUGn8pkYL2JUv cDxcX8UB57HD4G6BkjyOz2Nmb1WXOY5w9I7E+j5DtO+EwcZ2ihQtaXyaLBZ2a6U33pI423MB8 l6PEKbOXzlHYoEMeFPWdqVG4VppWRIMUW3ppK4OR1ROK9vJgRJmvEG0seGRXjlM63zXnVBHKQ XFl3+5+eEcJ0pBnMaJjlA4lcCpRjBqyhndXyYxl3Mj996Uu+bX9qwEU6RPjhBu1os35dbT2Zy UGEsMw8O7VoKRwZBR+107jaEsg6Mh0UaRadb1L0HP/VticNNNKsPYKYvnGDgfdQurF X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Version: 29.3 Sean Devlin writes: > Hi Michael, Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (michael.albinus[at]gmx.de) 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.89.39.16 listed in zen.spamhaus.org] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.22 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H5 RBL: Excellent reputation (+5) [212.227.17.22 listed in wl.mailspike.net] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Debbugs-Envelope-To: 68805-done Cc: 68805-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Version: 29.3 Sean Devlin writes: > Hi Michael, Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.89.39.16 listed in zen.spamhaus.org] 0.0 RCVD_IN_MSPIKE_H5 RBL: Excellent reputation (+5) [212.227.17.22 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.22 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (michael.albinus[at]gmx.de) 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 T_SCC_BODY_TEXT_LINE No description available. -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager Version: 29.3 Sean Devlin writes: > Hi Michael, Hi Sean, > I can confirm the below patch fixes the issue. Thanks for your help! Thanks for the feedback. I've pushed the fix to the repositories. Will appear with the next Tramp release on GNU ELPA (2.6.2.2) later this month. If there is an Emacs 29.3, it will also contain the fix. In Emacs 30.0.50 (Tramp 2.7) this patch isn't needed, because due to reorganization of the code, the cache is flushed in time. > Regarding the comment, couldn=E2=80=99t some cached file properties (i.e.= other than > file-exists-p) be wrong even if NEWNAME did already exist? I haven=E2=80= =99t really > thought this through, just curious. Hmm, the comment isn't precise enough, yes. It reflects this bug. But the code is. If you like to contribute to Tramp (Emacs), send a patch :-) > Thanks! Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 01 11:52:57 2024 Received: (at 68805-done) by debbugs.gnu.org; 1 Feb 2024 16:52:57 +0000 Received: from localhost ([127.0.0.1]:43089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVaJ7-0001Wv-Bz for submit@debbugs.gnu.org; Thu, 01 Feb 2024 11:52:57 -0500 Received: from mail-oo1-xc34.google.com ([2607:f8b0:4864:20::c34]:58473) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVaJ4-0001Wf-BB for 68805-done@debbugs.gnu.org; Thu, 01 Feb 2024 11:52:55 -0500 Received: by mail-oo1-xc34.google.com with SMTP id 006d021491bc7-5961a2726aaso657194eaf.0 for <68805-done@debbugs.gnu.org>; Thu, 01 Feb 2024 08:52:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20230601.gappssmtp.com; s=20230601; t=1706806358; x=1707411158; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wcNzNSGMsqVTEoKFQautD2VLtOd54hf3WQbZlzUrcQs=; b=jvk1yLxhQDDA6q8teVhkNozgUOVu7MHUjRpooSXX7Xo+Vi3O72T4s7REp4bnlBrcUM 22DfZFvMCHRKvSgL7B13DgLpLUBOOasfJYZk4cRjnR1Vyy3VOhcYHNjAvWctioAIMR5p siKiwWwZcGg+XZgS3xgHUX4ruNxKgD5wMVMVXMFKSuiY3TSav54usVRxQH+e8LJhU7rO qkqFKn+kx3ve+jIjzgbdlPZM/qQnUDTlsv5XWn8yDyMmZ4v6s1zN07/9QgeJy8acbP2H KZxCsx6wC+NxiOui56x04bYbWGzWCrCLYAP8Sje3ADw99by5GxHcb9e2hC04LQo6PpiT b+TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706806358; x=1707411158; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wcNzNSGMsqVTEoKFQautD2VLtOd54hf3WQbZlzUrcQs=; b=mKDWgsAJQdfTalXpqDvNQbwP0lBPgw1aJGpi+yaZOQiQKXVRp1rSv/SQfYPLntQgXC VLSdDVNCAGVwI0YsCxGWa13u7T8C5R5+/2E5R3IfP4FvDJ7OY9qVUvL2j5yIgEzWahjU C6+xhZFhhjAE7q1Buid9IUsmfTyzfJAJI1pH9TQwQAU3AUUxcEKOxvXV+IXa2VWuN28X zIcY6I0KHNA1Rc5AKF9DePTddL30+sxGn301p2KSAS+JsFI+xI1QNnX1PcYCb37Jx3Hs kgHe5OvC5lKBOdU/UasIAiQZCiWBrl8WhmW4KoVv0hD+tshPeH4ABb0G2OjQOMkTpRhG QXlA== X-Gm-Message-State: AOJu0YyY8JKL+L7LIGNbKtDj07gHnBMGoQwlQqHYgCh5D5fnHNSdkc6Q /pm+84Kh0B2N7CEJ4k8GRbEJjARQR2pfv1uHVd7GS6WnfwFlmAUTxvmWSGjpm+s= X-Google-Smtp-Source: AGHT+IEXOufA0JZe+IyBhH6qUBtL2N2UuHIbf7Qk9U5DRCQ5Zqxkf//kh31ijQkRSolZVtnJrmAp4g== X-Received: by 2002:a4a:d2c2:0:b0:59c:90fc:5e3b with SMTP id j2-20020a4ad2c2000000b0059c90fc5e3bmr538781oos.6.1706806358315; Thu, 01 Feb 2024 08:52:38 -0800 (PST) Received: from smtpclient.apple ([2620:149:af:2020:d113:b293:a522:b396]) by smtp.gmail.com with ESMTPSA id 17-20020a4ae1b1000000b0059a530f54c6sm20941ooy.10.2024.02.01.08.52.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Feb 2024 08:52:38 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.141\)) Subject: Re: bug#68805: 29.2; Tramp: out-of-band copy-file fails when tramp-copy-keep-date is nil From: Sean Devlin In-Reply-To: <875xz8gn6h.fsf@gmx.de> Date: Thu, 1 Feb 2024 11:52:26 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <59B29F53-DEE4-4DDD-BC68-8BB16652633E@toadstyle.org> <87frycgvo7.fsf@gmx.de> <87a5okguqo.fsf@gmx.de> <55A934E6-19B9-4EFC-BA64-25F35E4115B4@toadstyle.org> <875xz8gn6h.fsf@gmx.de> To: Michael Albinus X-Mailer: Apple Mail (2.3774.500.141) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68805-done Cc: 68805-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Michael, > On Feb 1, 2024, at 11:32=E2=80=AFAM, Michael Albinus = wrote: >=20 > Version: 29.3 >=20 > Sean Devlin writes: >=20 >> Hi Michael, >=20 > Hi Sean, >=20 >> I can confirm the below patch fixes the issue. Thanks for your help! >=20 > Thanks for the feedback. I've pushed the fix to the repositories. Will > appear with the next Tramp release on GNU ELPA (2.6.2.2) later this > month. If there is an Emacs 29.3, it will also contain the fix. >=20 > In Emacs 30.0.50 (Tramp 2.7) this patch isn't needed, because due to > reorganization of the code, the cache is flushed in time. Sounds good. Thanks! >=20 >> Regarding the comment, couldn=E2=80=99t some cached file properties = (i.e. other than >> file-exists-p) be wrong even if NEWNAME did already exist? I = haven=E2=80=99t really >> thought this through, just curious. >=20 > Hmm, the comment isn't precise enough, yes. It reflects this bug. But > the code is. >=20 > If you like to contribute to Tramp (Emacs), send a patch :-) I would like to, but my current job makes it difficult for me to = contribute in this way. Maybe someday that will change. For now, I will try to file good bug reports. :) >=20 >> Thanks! >=20 > Best regards, Michael. From unknown Thu Aug 14 21:49:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 01 Mar 2024 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator