[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: |
Philipp Stephani |
Subject: |
bug#53284: 28.0.91; TRAMP SSHFS: process-file with remote input file doesn't work |
Date: |
Sat, 15 Jan 2022 21:30:58 +0100 |
Am Sa., 15. Jan. 2022 um 20:42 Uhr schrieb Michael Albinus
<michael.albinus@gmx.de>:
>
> 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?
That appears to fix it for me, thanks.