From a481b5807e134df69305268dd3407d0d1d8e06f5 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sat, 28 Mar 2026 09:54:40 +0100 Subject: [PATCH] Fix tramp-smb-handle-copy-file * lisp/net/tramp-smb.el (tramp-smb-handle-copy-file): Suppress `jka-compr-handler'. Reported by Seppo Ronkainen . (Bug#80667) --- lisp/net/tramp-smb.el | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el index bda033b7838..8eec0e1bd08 100644 --- a/lisp/net/tramp-smb.el +++ b/lisp/net/tramp-smb.el @@ -603,12 +603,9 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored." (copy-directory filename newname keep-date 'parents 'copy-contents) (tramp-barf-if-file-missing v filename - ;; `file-local-copy' returns a file name also for a local - ;; file with `jka-compr-handler', so we cannot trust its - ;; result as indication for a remote file name. - (if-let* ((tmpfile - (and (tramp-tramp-file-p filename) - (file-local-copy filename)))) + ;; Suppress `jka-compr-handler'. + (if-let* ((jka-compr-inhibit t) + (tmpfile (file-local-copy filename))) ;; Remote filename. (condition-case err (rename-file tmpfile newname ok-if-already-exists)