101-musl-getservbyport.patch (497B)
1 Musl will always return something with getservbyport so we cannot skip 2 ports that returns non-null. 3 4 diff --git a/utils/statd/rmtcall.c b/utils/statd/rmtcall.c 5 index fd576d9..d72a0bf 100644 6 --- a/utils/statd/rmtcall.c 7 +++ b/utils/statd/rmtcall.c 8 @@ -90,8 +90,10 @@ statd_get_socket(void) 9 __func__); 10 break; 11 } 12 +#if defined(__GLIBC__) || defined(__UCLIBC__) 13 se = getservbyport(sin.sin_port, "udp"); 14 if (se == NULL) 15 +#endif 16 break; 17 /* rather not use that port, try again */ 18