Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 24490 Details for
Bug 32026
Gentoo autofs package version is outdated
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch file for autofs-4.1.0 ebuild
autofs-4.1.0-lookup.patch (text/plain), 1.16 KB, created by
Gregory Shimansky
on 2004-01-27 07:54:28 UTC
(
hide
)
Description:
Patch file for autofs-4.1.0 ebuild
Filename:
MIME Type:
Creator:
Gregory Shimansky
Created:
2004-01-27 07:54:28 UTC
Size:
1.16 KB
patch
obsolete
>diff -Nur autofs-4.1.0.orig/lib/cache.c autofs-4.1.0/lib/cache.c >--- autofs-4.1.0.orig/lib/cache.c 2003-12-09 23:13:37.000000000 +0800 >+++ autofs-4.1.0/lib/cache.c 2003-12-10 17:57:10.000000000 +0800 >@@ -148,11 +148,15 @@ > > int cache_update(const char *key, const char *mapent, time_t age) > { >- struct mapent_cache *me = NULL; >+ struct mapent_cache *s, *me = NULL; > char *pkey, *pent; > unsigned int hashval; > >- if ((me = cache_lookup(key)) == NULL) { >+ for (s = mapent_hash[hash(key)]; s != NULL; s = s->next) >+ if (strcmp(key, s->key) == 0) >+ me = s; >+ >+ if (me == NULL) { > me = (struct mapent_cache *) malloc(sizeof(struct mapent_cache)); > if (me == NULL) { > return 0; >@@ -348,14 +352,11 @@ > "cache_ghost: entry in %s not valid map format, key %s", > gc.mapname, gc.key); > } else if (match == LKP_WILD) { >- /* Wildcard must be last key in map */ > if (*me->key == '/') > syslog(LOG_NOTICE, > "cache_ghost: wildcard map key not valid in direct map"); >- else >- syslog(LOG_NOTICE, >- "cache_ghost: cannot ghost wildcard map key"); >- break; >+ me = me->next; >+ 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 32026
:
19811
|
19892
|
20954
|
24489
| 24490