Displaying 20 results from an estimated 55 matches for "t_strdup_printf".
2015 Jan 10
0
Solaris 10 make check core dumps
...s: [ libc.so.1 ld.so.1 ]
> ::stack
libc.so.1`strlen+0x50(29487, ffbffb00, ffbff43d, 0, 0, 0)
libc.so.1`vsnprintf+0x70(4f2c0, 10f, 29478, ffbffaf8, 10, ff1c7078)
t_noalloc_strdup_vprintf+0x3c(4f2c0, ffbffaf8, ffbffa2c, 1, 19, 0)
p_strdup_vprintf+0xc(4cb90, 29478, ffbffaf8, ff1c759c, 4cc38, 4cb8c)
t_strdup_printf+0x38(29478, 0, 0, 61fefeff, 80808080, 1010101)
Spot the zeros. It's doing the equivalent of 'vsnprintf(s, "%s", 0);'.
The check will run by changing the test code and not attempting to print
nulls, patch file attached. I've not thought about this deeply and this
is n...
2015 Jan 08
2
Solaris 10 make check core dumps
...: [ libc.so.1 ld.so.1 ]
> ::stack
libc.so.1`strlen+0x50(29487, ffbffb00, ffbff43d, 0, 0, 0)
libc.so.1`vsnprintf+0x70(4f2c0, 10f, 29478, ffbffaf8, 10, ff1c7078)
t_noalloc_strdup_vprintf+0x3c(4f2c0, ffbffaf8, ffbffa2c, 1, 19, 0)
p_strdup_vprintf+0xc(4cb90, 29478, ffbffaf8, ff1c759c, 4cc38, 4cb8c)
t_strdup_printf+0x38(29478, 0, 0, 61fefeff, 80808080, 1010101)
test_http_auth_challenges_valid+0x150(29000, 29400, 0, 4f250, 4cbb8, 0)
test_run_funcs+0x24(4ca74, 1c00, ff1c7940, 4, ff312a00, ff13866c)
test_run+0xc(4ca74, ffbffc7c, ffbffc84, 4f030, ff310140, 0)
_start+0x5c(0, 0, 0, 0, 0, 0)
Any help would be great...
2005 Jul 20
3
Another minor IMAP LIST issue
I've just noticed that Dovecot 1.0-stable and 1.0-test78 don't include
mbox folders with names beginning with "." in the IMAP LIST output.
These are often used to store "hidden" folders for storing things like
IMAP client configuration (e.g. Pine 4.x, IMHO, Prayer). Usually the
user shouldn't be able to see these, but there are occassions when they
might. It seems
2017 Aug 03
2
proxy-dict with tcp connection
...init(&dict->cmds, 32);
- if (uri[0] == ':') {
+ args = t_strsplit(uri, ":");
+ for(argc=0; args[argc] != NULL; argc++);
+
+ if (argc == 3) { /* host:ip:somewhere --> argc == 3 */
+ if (net_addr2ip(args[0], &ip) < 0) {
+ *error_r = t_strdup_printf("Invalid IP: %s in URI: %s",
args[0], uri);
+ return -1;
+ }
+ if (net_str2port(args[1], &port) < 0) {
+ *error_r = t_strdup_printf("Invalid port: %s in URI: %s",
args[1], uri);
+ return -1;
+ }
+ dest_uri = str...
2017 Nov 13
0
Carbon_name path hardcoded
Hello,
I am setting up the imap_stats for dovecot and stumb up on a problem with carbon_name setup.
const char *prefix = t_strdup_printf("dovecot.%s.global?,
But I need to setup the path myself so my index cam be compliant to the index I already have.
Wonder if changing it to something like the following so other users have a way to configure their own path or use the default in case they don?t want to worry about that....
2008 Feb 29
1
GETSCRIPT Bug in dovecot-1.0.10-MANAGESIEVE-v9.1.diff.gz
...9c0ed src/managesieve/cmd-getscript.c
- --- a/src/managesieve/cmd-getscript.c Mon Feb 18 14:13:12 2008 +0100
+++ b/src/managesieve/cmd-getscript.c Fri Feb 29 11:52:00 2008 +0100
@@ -112,7 +112,7 @@
return cmd_getscript_finish(ctx);
}
- - client_send_line(client, t_strdup_printf("{%"PRIuUOFF_T"}",
ctx->scriptsize));
+ client_send_line(client, t_strdup_printf("{%"PRIuUOFF_T"+}",
ctx->scriptsize));
client->command_pending = TRUE;
cmd->func = cmd_getscript_continue;
Bye,
- --
Steffen Kaiser
----...
2008 Oct 31
1
imap dump-capability fails Dovecot 1.1.6
Hi Timo,
Dovecot fails to start after upgrading from 1.1.4 to 1.1.6:
Fatal: userdb didn't return a home directory, but mail location used it
(%h): %h/mail:CONTROL=%h/control:INDEX=%h/index
Error: imap dump-capability process returned 89
Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
Adding a fake home directory to args in
master-settings.c:get_imap_capability solved the problem
2017 Apr 26
2
[BUG] OpenSSL function has been deprecated
...len, len2, success;
+#if OPENSSL_VERSION_NUMBER >= 0x00908000L
+ success = DH_generate_parameters_ex(dh, bitsize, DH_GENERATOR, NULL);
+#else
dh = DH_generate_parameters(bitsize, DH_GENERATOR, NULL, NULL);
if (dh == NULL) {
+ success = 0;
+ }
+#endif
+
+ if (success == 0) {
*error_r = t_strdup_printf(
- "DH_generate_parameters(bits=%d, gen=%d) failed: %s",
- bitsize, DH_GENERATOR, openssl_iostream_error());
+ "DH_generate_parameters(bits=%d, gen=%d) failed: %s",
+ bitsize, DH_GENERATOR, openssl_iostream_error());
return -1;
}
--
If anybody knows the instr...
2018 Jan 15
0
doveadm mailbox command fails if backend has an IPv6 address
...ion !
-------------- next part --------------
--- dovecot-2.2.33.2/src/doveadm/doveadm-mail-server.c.orig 2017-10-05 19:09:55.000000000 +0200
+++ dovecot-2.2.33.2/src/doveadm/doveadm-mail-server.c 2018-01-15 21:59:08.897161000 +0100
@@ -249,7 +249,10 @@
}
ret = -1;
} else {
- *host_r = t_strdup_printf("%s:%u", proxy_host, proxy_port);
+ if (is_ipv6_address(proxy_host) && *proxy_host != '[')
+ *host_r = t_strdup_printf("[%s]:%u", proxy_host, proxy_port);
+ else
+ *host_r = t_strdup_printf("%s:%u", proxy_host, proxy_port);
}
}
pool_unr...
2020 Aug 13
1
2.3.11.3 mail_cache_open_or_create_path called with null path
...in "Cache %s: "
src/lib-index/mail-cache.c:
..
557 struct mail_cache *
558 mail_cache_open_or_create_path(struct mail_index *index, const char *path)
559 {
..
565 cache->filepath = i_strdup(path);
..
572 event_set_append_log_prefix(cache->event,
573 t_strdup_printf("Cache %s: ", cache->filepath);
..
Seems something is wrong to have this function called with no cache path?
2020 Aug 14
0
2.3.11.3 on 32bit platforms
...e.php?p=dovecot
There are some compiler warnings on 32bit architectures in test-mech.c
test-mech.c: In function ?test_mechs?:
test-mech.c:326:61: warning: format ?%lu? expects argument of type
?long unsigned int?, but argument 4 has type ?unsigned int?
[-Wformat=]
326 | const char *testname = t_strdup_printf("auth mech %s %d/%lu",
| ~~^
| |
|
long unsigned int
| %u
test-mech.c:338:12: warning: pa...
2005 Feb 02
0
Dovecot doesn't call pam_open_session, thus dodging pam_mkhomedir (fwd)
...-cut--
--- src/auth/passdb-pam.c-org 2004-10-07 08:38:28.000000000 +0300
+++ src/auth/passdb-pam.c 2004-10-07 08:38:59.000000000 +0300
@@ -193,6 +193,18 @@
return status;
}
+ if ((status = pam_open_session(pamh, 0)) != PAM_SUCCESS) {
+ *error = t_strdup_printf("pam_open_session(%s) failed: %s",
+ user, pam_strerror(pamh, status));
+ return status;
+ }
+
+ if ((status = pam_close_session(pamh, 0)) != PAM_SUCCESS) {
+ *error = t_strdup_printf("pam_close_sessi...
2005 Jun 23
1
getpeername() and SSL
Hi Timo,
first of all: i'm using 0.99.14. You helped me to raw-log the client-IP
using something like this in rawlog.c:
if (net_getpeername(0, &ip, NULL) == 0) {
str = t_strdup_printf("IP: %s\n", net_ip2addr(&ip));
write_full(log_out, str, strlen(str));
}
Now i got the problem, that this doesn't work when the client is
connected using SSL. After some testing i think, the problem is, that
after calling net_getpeername() the ip-family is AF_UNIX, not AF_INET,...
2005 Jan 27
1
Dovecot doesn't call pam_open_session, thus dodging pam_mkhomedir
I hit a small snag using Dovecot-imapd smoothly in my environment
with maildir and most of my accounts in LDAP. Since the accounts are
created through a web interface on another server home directories on
the mail server don't get created automatically. There's the handy pam
module pam_mkhomedir.so to automagically create home directories, but
unfortunatly Dovecot wasn't calling
2014 Jan 22
1
Dovecot on Solaris 10 Segmentation Fault
...C/x86) and 32 or 64 bit binary.
Dovecot Version: 2.2.10
OS: Solaris 10/SPARC & x86
SunStudion Compiler
cc: Sun C 5.10 SunOS_sparc Patch 141861-10 2012/11/07
GCC
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
The error occurs first in: src/lib-http/test-http-url
Line 317/318:
test_out(t_strdup_printf("url->user = %s", urlp->user),
urlp->user == urlt->user);
(if commenting out these lines, then it segfaults just in the next test)
%make check
<--- cut out lot of good output --->
http date invalid [42]: parse Sun Nov 6 08:49:37 0000 ............... : ok
http da...
2013 Aug 01
0
[PATCH] quota-status: remove unnecessary newlines
...src/plugins/quota/quota-status.c 2013-08-01 14:35:35.000000000 +0200
+++ b/src/plugins/quota/quota-status.c 2013-08-01 17:58:26.000000000 +0200
@@ -107,7 +107,7 @@
/* over quota */
value = mail_user_plugin_getenv(user, "quota_status_overquota");
if (value == NULL)
- value = t_strdup_printf("554 5.2.2 %s\n\n", error);
+ value = t_strdup_printf("554 5.2.2 %s", error);
}
value = t_strdup(value); /* user's pool is being freed */
mail_user_unref(&user);
2017 Aug 03
0
proxy-dict with tcp connection
...- if (uri[0] == ':') {
> + args = t_strsplit(uri, ":");
> + for(argc=0; args[argc] != NULL; argc++);
> +
> + if (argc == 3) { /* host:ip:somewhere --> argc == 3 */
> + if (net_addr2ip(args[0], &ip) < 0) {
> + *error_r = t_strdup_printf("Invalid IP: %s in URI: %s",
> args[0], uri);
> + return -1;
> + }
> + if (net_str2port(args[1], &port) < 0) {
> + *error_r = t_strdup_printf("Invalid port: %s in URI: %s",
> args[1], uri);
> + return -1;...
2009 Apr 06
0
conflict name of si_code on NetBSD
...tch (sicode) {
case BUS_ADRALN:
return "invalid address alignment";
case BUS_ADRERR:
***************
*** 60,66 ****
return "object-specific hardware error";
}
}
! return t_strdup_printf("unknown %d", si_code);
}
static void sig_handler(int signo, siginfo_t *si, void *context ATTR_UNUSED)
--- 60,66 ----
return "object-specific hardware error";
}
}
! return t_strdup_printf("unknown %d", sicode);...
2004 Jul 09
1
passing remote ip to pam
...th(pam_handle_t *pamh, const char *user,
+ const struct ip_addr *remote_ip, const char **error)
{
void *item;
int status;
+ const char *addr;
*error = NULL;
+ if ((addr = net_ip2addr(remote_ip))
+ && (status = pam_set_item(pamh, PAM_RHOST, addr))
+ != PAM_SUCCESS) {
+ *error = t_strdup_printf("pam_set_item(PAM_RHOST, %s) failed: %s",
+ addr, pam_strerror(pamh, status));
+ return status;
+ }
+
if ((status = pam_authenticate(pamh, 0)) != PAM_SUCCESS) {
*error = t_strdup_printf("pam_authenticate(%s) failed: %s",
user, pam_strerror(pamh, status));
@@ -2...
2015 Nov 04
1
ssl-params: slow startup (patch for consideration)
...- default.. */
-#define DH_GENERATOR 2
@@ -14,2 +11,3 @@
DH *dh;
+ DSA *dsa;
unsigned char *p;
@@ -17,3 +15,13 @@
- dh = DH_generate_parameters(bitsize, DH_GENERATOR, NULL, NULL);
+ dsa = DSA_generate_parameters(bitsize, NULL, 0, NULL, NULL, NULL, NULL);
+ if (dsa == NULL) {
+ *error_r = t_strdup_printf(
+ "DSA_generate_parameters(bits=%d) failed: %s",
+ bitsize, openssl_iostream_error());
+ return -1;
+ }
+
+ dh = DSA_dup_DH(dsa);
+ DSA_free(dsa);
+
if (dh == NULL) {
@@ -20,4 +28,4 @@
*error_r = t_strdup_printf(
- "DH_generate_parameters(bits=%d, gen=%d) failed: %s&qu...