The rexec() function in rexec.c is supposed to receive the second argument (rport) in network-byte order, but it doesn't swap it back to host order before passing it to snprintf() for formatting the strings.
Do you have some testcase, like e.g. rsh does not work or something like that? I've submitted a patch to fix this to Ulrich, but would like to verify it.
*** Bug 19379 has been marked as a duplicate of this bug. ***
Sorry for the delay. The test case is to run rexec to any host from a little-endian machine. If you strace it, it'll try to connect to port 2 instead of 512.
Please check glibc-2.1.95-1, it should be fixed there.
*** Bug 19602 has been marked as a duplicate of this bug. ***
*** Bug 19873 has been marked as a duplicate of this bug. ***
Jakub, this is fixed in the latest errata candidate.
*** Bug 20441 has been marked as a duplicate of this bug. ***
*** Bug 25363 has been marked as a duplicate of this bug. ***