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 309516 Details for
Bug 450844
automount segfault on SIGHUP after negative lookups
[?]
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]
Handle negative map entries in the cache code.
autofs-4.1.3-teach-cache-about-negative-mapents.patch (text/plain), 1.24 KB, created by
Jeff Moyer
on 2008-06-16 17:06:15 UTC
(
hide
)
Description:
Handle negative map entries in the cache code.
Filename:
MIME Type:
Creator:
Jeff Moyer
Created:
2008-06-16 17:06:15 UTC
Size:
1.24 KB
patch
obsolete
>--- autofs-4.1.3/lib/cache.c.orig 2008-06-16 11:25:21.000000000 -0400 >+++ autofs-4.1.3/lib/cache.c 2008-06-16 11:50:45.000000000 -0400 >@@ -272,7 +272,7 @@ int cache_update(const char *root, const > if (me->age == age) > return CHE_OK; > >- if (strcmp(me->mapent, mapent) != 0) { >+ if (!me->mapent || strcmp(me->mapent, mapent) != 0) { > pent = malloc(strlen(mapent) + 1); > if (pent == NULL) { > return CHE_FAIL; >@@ -432,10 +432,18 @@ int cache_ghost(const char *root, int gh > for (i = 0; i < HASHSIZE; i++) { > me = mapent_hash[i]; > >- if (me == NULL) >- continue; >- > while (me != NULL) { >+ /* >+ * Don't create directories for negative cache >+ * entries. This shouldn't actually happen, as this >+ * function is only called after a cache_clean() >+ * which should clear out all negative entries. >+ */ >+ if (me->mapent == NULL) { >+ error("%s: unexpected negative entry found " >+ "for %s", __func__, me->key); >+ continue; >+ } > strcpy(gc.key, me->key); > strcpy(gc.mapent, me->mapent); > >@@ -450,7 +458,7 @@ int cache_ghost(const char *root, int gh > error("cache_ghost: wildcard map key " > "not valid in direct map"); > me = me->next; >- continue;; >+ continue; > } > > switch (match) {
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 450844
:
308945
|
309516
|
309862