Subject: bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process

From: Michael Albinus <[email-masked]>
Date: Wed, 06 May 2020 10:38:39 +0200

Michael Albinus <[email-masked]> writes:

Hi Philipp,

>> It looks like `tramp-send-command-and-check' should not just search
>> for the exit code, but also return it.
>
> No, most use cases a simple nil or t is appropriate. Otherwise, you would
> need to check always (zerop (tramp-send-command-and-check ...)). But in
> tramp-sh-handle-process-file, it shall return the exit code (indicated
> by an optional argument).
>
> Same for tramp-adb-send-command-and-check, called in tramp-adb-handle-process-file.

I've fixed this in master, could you pls check?

Best regards, Michael.