diff options
-rw-r--r-- | lib/libc/net/rcmd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c index 86f35664e47..727a26e1732 100644 --- a/lib/libc/net/rcmd.c +++ b/lib/libc/net/rcmd.c @@ -133,7 +133,13 @@ rcmd(ahost, rport, locuser, remuser, cmd, fd2p) sigsetmask(oldmask); return (-1); } +#if 0 + /* + * try to rresvport() to the same port. This will make rresvport() + * fail it's first bind, resulting in it choosing a random port. + */ lport--; +#endif if (fd2p == 0) { write(s, "", 1); lport = 0; |