GNU bug report logs -
#53284
28.0.91; TRAMP SSHFS: process-file with remote input file doesn't work
Previous Next
Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>
Date: Sat, 15 Jan 2022 12:52:02 UTC
Severity: normal
Found in version 28.0.91
Fixed in version 29.1
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Am Sa., 15. Jan. 2022 um 20:42 Uhr schrieb Michael Albinus
<michael.albinus <at> gmx.de>:
>
> Philipp Stephani <p.stephani2 <at> 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.
This bug report was last modified 3 years and 129 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.