search for: hash_insert

Displaying 15 results from an estimated 15 matches for "hash_insert".

2008 Dec 17
6
Apple patches 6-8
...symbols hash_create and hash_destroy conflict with symbols defined in <strhash.h> and libc. This showed up when loading dovecot's quota plugin (one of our future patches will add a hash table to it; stay tuned). The wrong hash_create was called which caused a crash at the first hash_insert. Apparently this is only a problem in loaded dynamic libraries and not linked-in ones. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: patch7.txt URL: <http://dovecot.org/pipermail/dovecot/attachments/20081217/9ea4d051/attachment-0007.txt...
2009 Aug 03
2
[PATCH] New commands to list devices by UUID and label
...*/ + struct h1 *h1 = malloc (sizeof *h1); + if (h1 == NULL) { + reply_with_perror ("malloc"); + goto error; + } + h1->dev = statbuf.st_rdev; + h1->dname = unescape (d->d_name); + if (!h1->dname) { + free (h1); + goto error; + } + if (hash_insert (hash1, h1) == NULL) { + reply_with_perror ("hash_insert"); + free (h1); + goto error; + } + } + + if (closedir (dir) == -1) { + reply_with_perror (udevpath); + dir = NULL; + goto error; + } + + /* In the second pass we look at all devices in /dev and /dev/m...
2009 Dec 13
1
Different PROXY for IMAP and POP3 using LDAP-auth
-------------------------------------------------- For all non german speaking people: Oliver asked: In an old posting I've read something about different proxy hosts for IMAP and POP3. http://www.dovecot.org/list/dovecot/2008-July/031885.html I've got the same problem and want to ask you, if there is a patch for replacing [variable names in] pass_attrs.
2017 Jan 12
3
[PATCH 0/3] library: improve handling of external tools
Hi, the libguestfs library uses a number of external tools; for some of them, we search for them at build time, enabling some feature only if found, and later on assuming at runtime they are installed. However, the situation is more complex than that: - hardcoding the full path means that there is an incoherency in the way some of the tools are used, as some other tools (e.g. qemu-img) are
2004 Jun 14
1
vpopmail and open smtp relay
...Jun 14 13:27:33 2004 @@ -98,7 +98,10 @@ auth_request->conn = conn; auth_request->id = request->id; auth_request->protocol = request->protocol; - +#ifdef PASSDB_VPOPMAIL + auth_request->client_ip = request->client_ip; +#endif + hash_insert(conn->auth_requests, POINTER_CAST(request->id), auth_request); } diff -Naur dovecot-0.99.10.5/src/auth/mech.h dovecot-0.99.10.5-patched/src/auth/mech.h --- dovecot-0.99.10.5/src/auth/mech.h Sun May 18 16:26:28 2003 +++ dovecot-0.99.10.5-patched/src/auth/mech.h Mon...
2017 Feb 02
4
[PATCH v2 0/3] library: improve handling of external tools
Hi, the libguestfs library uses a number of external tools; for some of them, we search for them at build time, enabling some feature only if found, and later on assuming at runtime they are installed. However, the situation is more complex than that: - hardcoding the full path means that there is an incoherency in the way some of the tools are used, as some other tools (e.g. qemu-img) are
2006 Jun 26
1
[PATCH, RFC 0/13] OTP: add auth_cache_remove()
...rc/auth/auth-cache.c dovecot/src/auth/auth-cache.c --- dovecot.vanilla/src/auth/auth-cache.c 2006-06-23 13:42:22.122508080 +0400 +++ dovecot/src/auth/auth-cache.c 2006-06-23 13:44:30.945923944 +0400 @@ -226,3 +226,22 @@ void auth_cache_insert(struct auth_cache cache->size_left -= alloc_size; hash_insert(cache->hash, node->data, node); } + +void auth_cache_remove(struct auth_cache *cache, + const struct auth_request *request, + const char *key) +{ + string_t *str; + struct cache_node *node; + + str = t_str_new(256); + var_expand(str, key, + auth_request_get_var_expand_tab...
2010 Mar 11
2
[PATCH FOR DISCUSSION ONLY] Rewrite libguestfs-supermin-helper in C.
...terminate the array. */ + add_string (&files, &size, &alloc, NULL); + + /* Add it to the hash for next time. */ + p = malloc (sizeof *p); + if (p == NULL) { + perror ("malloc"); + exit (EXIT_FAILURE); + } + p->path = (char *) name; + p->files = files; + p = hash_insert (ht, p); + assert (p != NULL); + + return files; +} + +/* Filter a list of strings and return only those matching the wildcard. */ +static char ** +filter_fnmatch (char **strings, const char *patt, int flags) +{ + char **out = NULL; + size_t size = 0, alloc = 0; + + int i, r; + for (i = 0; st...
2012 Mar 28
2
[PATCH v2] New APIs: mount-local and umount-local using FUSE
This version doesn't crash or cause hung processes or stuck mountpoints, so that's an improvement. Rich.
2012 Mar 27
3
[PATCH 0/3] Enable FUSE support in the API via 'mount-local' call.
This patch is just for review. It enables FUSE support in the API via two new calls, 'guestfs_mount_local' and 'guestfs_umount_local'. FUSE turns out to be very easy to deadlock (necessitating that the machine be rebooted). Running the test from the third patch is usually an effective way to demonstrate this. However I have not yet managed to produce a simple reproducer that
2012 Mar 29
3
[PATCH v3] New APIs: mount-local, mount-local-run and umount-local using FUSE
This changes the proposed API slightly. Previously 'mount-local' generating a 'mounted' event when the filesystem was ready, and from the 'mounted' event you had to effectively do a fork. Now, 'mount-local' just initializes the mountpoint and you have to call 'mount-local-run' to enter the FUSE main loop. Between these calls you can do a fork or whatever
2003 Nov 04
0
PATCH: make local IP address available to auth modules
The attached patch makes the local IP address to which the client connected available to the authentication modules; i.e., the local IP address is available for substitution as %i for the mysql and pgsql modules. We needed this feature to support thousands of our legacy accounts which are authenticated by username/local_part (not the full email address) and IP address (one per domain). Timo,
2007 Aug 24
2
[git patch] klibc bzero, mount fixes + random stuff
...atic void free_deferment(struct deferment *d) { free(d->header.c_name); free(d); } -int link_to_name(char *link_name, char *link_target) +static int link_to_name(char *link_name, char *link_target) { int res = link(link_target, link_name); return res; @@ -352,7 +339,7 @@ static void hash_insert(struct inode_val *new_value) /* Associate FILE_NAME with the inode NODE_NUM. (Insert into hash table.) */ -void +static void add_inode(unsigned long node_num, char *file_name, unsigned long major_num, unsigned long minor_num) { @@ -399,7 +386,7 @@ add_inode(unsigned long node_num, char...
2010 Aug 31
13
[PATCH v2] Add progress bars
This is an updated and extended version of the original patch: https://www.redhat.com/archives/libguestfs/2010-August/msg00163.html This adds OCaml and Perl bindings (both tested), support for progress bars in virt-resize, and adds progress notifications to a number of the simpler commands. Still to do is to add progress messages to more commands. There are still a few commands which would be
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...ror (EXIT_FAILURE, errno, "closedir: %s", name); - - done: - /* NULL-terminate the array. */ - add_string (&files, &n_used, &n_alloc, NULL); - - /* Add it to the hash for next time. */ - p = xmalloc (sizeof *p); - p->path = (char *) name; - p->files = files; - p = hash_insert (ht, p); - assert (p != NULL); - - return files; -} - -/* Filter a list of strings, returning only those where f(s) != 0. */ -char ** -filter (char **strings, int (*f) (const char *)) -{ - char **out = NULL; - size_t n_used = 0, n_alloc = 0; - - int i; - for (i = 0; strings[i] != NULL; ++i) {...