Cannot receive a file: "zsz-rz: command not found"

Description:

I can no longer receive a file over [xyz]modem. Here is what I am getting when running lrzsz-rz:

lrzsz-rz waiting to receive.Topipe: zsz-rz GPL-2.0-or-later.txt BIN
sh: line 1: zsz-rz: command not found
lrzsz-rz: caught signal 13; exiting

The problem seems to be that since pkgrel=10, the binaries are prefixed with lrzsz-:

b8a3cedb

I tried building a package without --program-transform-name=s/l/lrzsz-/ and it worked fine.

This looks like an upstream problem, but hey, version 0.12.20 is quite dated (Dec 1998). I don't think they accept bug reports :P

Additional info:

  • package version(s): 0.12.20-10

Steps to reproduce:

The problem can easily be reproduced on a localhost using socat:

  1. Receiving side, run: socat UNIX-LISTEN:/tmp/test.sock EXEC:"lrzsz-rz -v".
  2. Sending side, run: socat UNIX-CONNECT:/tmp/test.sock EXEC:"lrzsz-sz -v /usr/share/licenses/spdx/GPL-2.0-or-later.txt".
$ socat UNIX-LISTEN:/tmp/test.sock EXEC:"lrzsz-rz -v"
lrzsz-rz waiting to receive.Topipe: zsz-rz GPL-2.0-or-later.txt BIN
sh: line 1: zsz-rz: command not found
lrzsz-rz: caught signal 13; exiting
2024/01/22 21:27:42 socat[57331] E waitpid(): child 57339 exited with status 141
$ socat UNIX-CONNECT:/tmp/test.sock EXEC:"lrzsz-sz -v /usr/share/licenses/spdx/GPL-2.0-or-later.txt"
Sending: GPL-2.0-or-later.txt
Retry 0: Got ZCAN

Transfer incomplete
2024/01/22 21:27:42 socat[57338] E waitpid(): child 57340 exited with status 128

Same problem with lrzsz-r[bxz].