Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 587253 Details for
Bug 644003
cmsg(3) manpage incomplete, broken examples
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
cmsg.patch
cmsg.patch (text/plain), 957 bytes, created by
Peter Schiffer
on 2012-05-28 15:11:26 UTC
(
hide
)
Description:
cmsg.patch
Filename:
MIME Type:
Creator:
Peter Schiffer
Created:
2012-05-28 15:11:26 UTC
Size:
957 bytes
patch
obsolete
>--- cmsg.3.org 2012-05-10 22:13:20.000000000 +0200 >+++ cmsg.3 2012-05-28 14:35:39.353690953 +0200 >@@ -154,6 +154,13 @@ > this could be used to declare the size of global > variables. > This may be not portable, however. >+.PP >+The receiver should parse each control message and close every >+file descriptor appropriately; otherwise, the sender can inject >+a file descriptor leak into the receiver. The number of all >+file descriptors passed to the receiver can be computed using the length >+of the message, e.g. int nb_of_descriptors = cmsg->cmsg_len / sizeof (int); >+in the following examples. > .SH EXAMPLE > This code looks for the > .B IP_TTL >@@ -206,8 +213,9 @@ > /* Initialize the payload: */ > fdptr = (int *) CMSG_DATA(cmsg); > memcpy(fdptr, myfds, NUM_FD * sizeof(int)); >-/* Sum of the length of all control messages in the buffer: */ >-msg.msg_controllen = cmsg\->cmsg_len; >+ >+if (sendmsg(s, &msg, 0) == -1) >+ err(1, "sendmsg"); > .fi > .in > .SH "SEE ALSO"
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 644003
:
454185
|
587252
| 587253