FreeBSD Bugzilla – Attachment 10841 Details for
Bug 21595
lpd don't set socket option SO_REUSEADDR on inet socket
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 748 bytes, created by
vova
on 2000-09-27 14:40:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
vova
Created:
2000-09-27 14:40:00 UTC
Size:
748 bytes
patch
obsolete
>--- usr.sbin/lpr/lpd/lpd.c.orig Wed Sep 27 17:26:01 2000 >+++ usr.sbin/lpr/lpd/lpd.c Wed Sep 27 17:33:29 2000 >@@ -285,6 +285,11 @@ > if (pflag == 0) { > finet = socket(AF_INET, SOCK_STREAM, 0); > if (finet >= 0) { >+ int one = 1; >+ if (setsockopt(finet, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)) < 0) { >+ syslog(LOG_ERR, "setsockopt (SO_REUSEADDR): %m"); >+ mcleanup(0); >+ } > if (options & SO_DEBUG && > setsockopt(finet, SOL_SOCKET, SO_DEBUG, 0, 0) < 0) { > syslog(LOG_ERR, "setsockopt (SO_DEBUG): %m");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21595
: 10841