GNU bug report logs - #53284
28.0.91; TRAMP SSHFS: process-file with remote input file doesn't work

Previous Next

Package: emacs;

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


Message #8 received at 53284 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 53284 <at> debbugs.gnu.org
Subject: Re: 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
[Message part 1 (text/plain, inline)]
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?

Best regards, Michael.

[Message part 2 (text/x-patch, attachment)]

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.