unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Mehmet Tekman <mtekman89@gmail.com>
Cc: 55274@debbugs.gnu.org
Subject: bug#55274: 28.1; Tramp unable to perform Zip compression
Date: Fri, 06 May 2022 13:36:05 +0200	[thread overview]
Message-ID: <878rrej3kq.fsf@gmx.de> (raw)
In-Reply-To: <CAHHeYz+QcvSkdHWg+Rzk15Rk5tui8BxpaNcAx08oGXQ6gMBJTQ@mail.gmail.com> (Mehmet Tekman's message of "Thu, 5 May 2022 15:54:25 +0200")

[-- Attachment #1: Type: text/plain, Size: 649 bytes --]

Mehmet Tekman <mtekman89@gmail.com> writes:

Hi Mehmet,

> Steps to reproduce:
> ===================
> 1. Visit a remote directory via "C-x C-f"
> 2. Select a remote directory to compress by typing "c" on the
> directory
> 3. Type in a new zip name at the same level of the remote directory.
> 4. Witness error message *dired-check-progress-output* buffer:
>
>> zip I/O error: No such file or directory
>> zip error: Could not create output file
> (/ssh:user@ipadd#customport:/home/user/path/to/new/zip/myzip.zip)

Thanks for the report, I could reproduce it here. The appended patch
fixes this for me, could you pls check?

Best regards, Michael.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 679 bytes --]

diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index f16568f919..e00910cfe8 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -1242,7 +1242,8 @@ dired-do-compress-to
            (when (zerop
                   (dired-shell-command
                    (format-spec (cdr rule)
-                                `((?o . ,(shell-quote-argument out-file))
+                                `((?o . ,(shell-quote-argument
+                                          (file-local-name out-file)))
                                   (?i . ,(mapconcat
                                           (lambda (in-file)
                                             (shell-quote-argument

  reply	other threads:[~2022-05-06 11:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-05 13:54 bug#55274: 28.1; Tramp unable to perform Zip compression Mehmet Tekman
2022-05-06 11:36 ` Michael Albinus [this message]
2022-05-06 13:46   ` Mehmet Tekman
2022-05-06 15:35     ` Michael Albinus

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=878rrej3kq.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=55274@debbugs.gnu.org \
    --cc=mtekman89@gmail.com \
    /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).