rcmd.c (0cac72f42c2f9dfe7953cb3dd7c2e93d1d0c61cf) | rcmd.c (469bed11ef66ab2a077aa7555ad82815cd37e74f) |
---|---|
1/* 2 * Copyright (c) 1983, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 319 unchanged lines hidden (view full) --- 328 if (bind(s, (struct sockaddr *)&sin, sizeof(sin)) >= 0) 329 return (s); 330 if (errno != EADDRINUSE) { 331 (void)_libc_close(s); 332 return (-1); 333 } 334#endif 335 *sport = 0; | 1/* 2 * Copyright (c) 1983, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 319 unchanged lines hidden (view full) --- 328 if (bind(s, (struct sockaddr *)&sin, sizeof(sin)) >= 0) 329 return (s); 330 if (errno != EADDRINUSE) { 331 (void)_libc_close(s); 332 return (-1); 333 } 334#endif 335 *sport = 0; |
336 if (bindresvport2(s, (struct sockaddr *)&ss, 337 ((struct sockaddr *)&ss)->sa_len) == -1) { | 336 if (bindresvport_sa(s, (struct sockaddr *)&ss, 337 ((struct sockaddr *)&ss)->sa_len) == -1) { |
338 (void)_libc_close(s); 339 return (-1); 340 } 341 *alport = (int)ntohs(*sport); 342 return (s); 343} 344 345int __check_rhosts_file = 1; --- 315 unchanged lines hidden --- | 338 (void)_libc_close(s); 339 return (-1); 340 } 341 *alport = (int)ntohs(*sport); 342 return (s); 343} 344 345int __check_rhosts_file = 1; --- 315 unchanged lines hidden --- |