From: Philipp Stephani <p.stephani2@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 53284@debbugs.gnu.org
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 [thread overview]
Message-ID: <CAArVCkQhnka+rPJOD+UENKXUqTjfUJtPTXOwd=426v=j4vLX2w@mail.gmail.com> (raw)
In-Reply-To: <871r18lram.fsf@gmx.de>
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.
next prev parent reply other threads:[~2022-01-15 20:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-15 12:51 bug#53284: 28.0.91; TRAMP SSHFS: process-file with remote input file doesn't work Philipp Stephani
2022-01-15 19:42 ` Michael Albinus
2022-01-15 20:30 ` Philipp Stephani [this message]
2022-01-17 9:53 ` Michael Albinus
2022-01-17 10:07 ` Philipp Stephani
2022-01-17 10:38 ` 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='CAArVCkQhnka+rPJOD+UENKXUqTjfUJtPTXOwd=426v=j4vLX2w@mail.gmail.com' \
--to=p.stephani2@gmail.com \
--cc=53284@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
/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).