Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 965865 Details for
Bug 1171241
libcman segfaults when /dev/zero does not exist
Home
New
Search
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.rh92 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]
Patch that also uses FD_CLOEXEC symbolic name
libcman-cloexec.patch (text/plain), 752 bytes, created by
Christine Caulfield
on 2014-12-08 14:17:30 UTC
(
hide
)
Description:
Patch that also uses FD_CLOEXEC symbolic name
Filename:
MIME Type:
Creator:
Christine Caulfield
Created:
2014-12-08 14:17:30 UTC
Size:
752 bytes
patch
obsolete
>diff --git a/cman/lib/libcman.c b/cman/lib/libcman.c >index a99f5a0..1954468 100644 >--- a/cman/lib/libcman.c >+++ b/cman/lib/libcman.c >@@ -303,7 +303,7 @@ static cman_handle_t open_socket(const char *name, int namelen, void *privdata) > return NULL; > } > >- fcntl(h->fd, F_SETFD, 1); /* Set close-on-exec */ >+ fcntl(h->fd, F_SETFD, FD_CLOEXEC); > memset(&sockaddr, 0, sizeof(sockaddr)); > memcpy(sockaddr.sun_path, name, namelen); > sockaddr.sun_family = AF_UNIX; >@@ -328,7 +328,10 @@ static cman_handle_t open_socket(const char *name, int namelen, void *privdata) > h = NULL; > errno = saved_errno; > } >- fcntl(h->zero_fd, F_SETFD, 1); /* Set close-on-exec */ >+ else >+ { >+ fcntl(h->zero_fd, F_SETFD, FD_CLOEXEC); >+ } > > return (cman_handle_t)h; > }
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 1171241
: 965865