[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#53284: 28.0.91; TRAMP SSHFS: process-file with remote input file doe
From: |
Michael Albinus |
Subject: |
bug#53284: 28.0.91; TRAMP SSHFS: process-file with remote input file doesn't work |
Date: |
Sat, 15 Jan 2022 20:42:09 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Philipp Stephani <p.stephani2@gmail.com> writes:
Hi Philipp,
> $ mkdir -p /tmp/tramptest && emacs -Q -batch -l tramp-sshfs -l tramp -eval
> '(let ((default-directory "/sshfs:localhost:/tmp/tramptest/"))
> (write-region "hello" nil "input")
> (with-temp-buffer
> (print (list (process-file "cat" "input" t)
> (buffer-string)))))'
>
> (1 "")
>
> I think the problem is that tramp-sshfs-handle-process-file doesn't pass
> the correct input file to tramp-call-process; it should first expand the
> input file against the remote default directory and then copy it locally
> to pass it to the SSH process.
Could you pls try the appended patch?
Best regards, Michael.
txtFroh8sObRF.txt
Description: Text Data