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 305164 Details for
Bug 446112
TCP wrappers leave SIGALRM blocked when ident fails
[?]
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]
Proposed patch - 1 of 2
tcp_wrappers-7.6-restore_sigalarm.patch (text/plain), 1.04 KB, created by
Bryan Mason
on 2008-05-12 19:28:17 UTC
(
hide
)
Description:
Proposed patch - 1 of 2
Filename:
MIME Type:
Creator:
Bryan Mason
Created:
2008-05-12 19:28:17 UTC
Size:
1.04 KB
patch
obsolete
>diff -ruN tcp_wrappers_7.6.orig/rfc931.c tcp_wrappers_7.6/rfc931.c >--- tcp_wrappers_7.6.orig/rfc931.c 2004-08-29 18:40:08.000000000 +0200 >+++ tcp_wrappers_7.6/rfc931.c 2004-08-29 18:40:02.000000000 +0200 >@@ -92,6 +92,8 @@ > char *cp; > char *result = unknown; > FILE *fp; >+ unsigned saved_timeout; >+ struct sigaction nact, oact; > > #ifdef INET6 > /* address family must be the same */ >@@ -134,7 +136,12 @@ > */ > > if (setjmp(timebuf) == 0) { >- signal(SIGALRM, timeout); >+ /* Save SIGALRM timer and handler. Sudheer Abdul-Salam, SUN. */ >+ saved_timeout = alarm(0); >+ nact.sa_handler = timeout; >+ nact.sa_flags = 0; >+ (void) sigemptyset(&nact.sa_mask); >+ (void) sigaction(SIGALRM, &nact, &oact); > alarm(rfc931_timeout); > > /* >@@ -223,6 +230,10 @@ > } > alarm(0); > } >+ /* Restore SIGALRM timer and handler. Sudheer Abdul-Salam, SUN. */ >+ (void) sigaction(SIGALRM, &oact, NULL); >+ if (saved_timeout > 0) >+ alarm(saved_timeout); > fclose(fp); > } > STRN_CPY(dest, result, STRING_LENGTH);
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 446112
: 305164 |
305165