Displaying 15 results from an estimated 15 matches for "t_strcut".
Did you mean:
strcut
2010 Aug 07
2
piegonhole seg fault with NULL user
dovecot-2.0-piegonhole commit cac6acdc4d0e:
Crash when USER is NULL. Backtrace is below. Perhaps, we should check
for NULL and bail out early?
Eray
[...]
(gdb) cont
Continuing.
Program received signal SIGSEGV, Segmentation fault.
t_strcut (str=0x0, cutchar=64 '@') at strfuncs.c:277
277 for (p = str; *p != '\0'; p++) {
(gdb) bt full
#0 t_strcut (str=0x0, cutchar=64 '@') at strfuncs.c:277
p = <value optimized out>
#1 0x4009c28b in get_var_expand_table (service=<value optimized out...
2014 May 03
1
%{orig_user} missing in checkpassword-Script
...h_request->session_pid == (pid_t)-1 ? NULL :
dec2str(auth_request->session_pid);
if (auth_request->original_username != NULL) {
tab[27].value =
escape_func(auth_request->original_username, auth_request);
tab[28].value =
escape_func(t_strcut(auth_request->original_username, '@'), auth_request);
tab[29].value = strchr(auth_request->original_username,
'@');
if (tab[29].value != NULL) {
tab[29].value = escape_func(tab[29].value+1,
auth_request);...
2003 Jul 23
0
Re: Stripping of domain name
...} else {
- auth_request->user = p_strdup(auth_request->pool,
- authenid);
- }
+ auth_request->user = p_strdup(auth_request->pool,
+ t_strcut(authenid, '@'));
if (!mech_is_valid_username(auth_request->user)) {
/* invalid username */
2019 May 19
3
Dict issue with PostgreSQL for last_login plugin (duplicate key)
On 19/05/2019 20:31, mabi via dovecot wrote:
>
> ??????? Original Message ???????
> On Sunday, May 19, 2019 7:36 PM, John Fawcett via dovecot
> <dovecot at dovecot.org> wrote:
>>
>> Attached is a tentative patch. I've verified no regression for mysql.
>> There should be no regression for sqlite as the code path is identical.
>>
>> Are you able to
2019 May 19
0
Dict issue with PostgreSQL for last_login plugin (duplicate key)
...(prefix, " ON CONFLICT DO UPDATE SET ");
+ } else {
*stmt_r = sql_dict_transaction_stmt_init(ctx, str_c(prefix), ¶ms);
return 0;
}
- str_append(prefix, " ON DUPLICATE KEY UPDATE ");
for (i = 0; i < field_count; i++) {
const char *first_value_field =
t_strcut(fields[i].map->value_field, ',');
2006 Apr 28
1
imaptest, with options!
I hacked some command line options into imaptest.
I dont think I broke it..
Place into dovecot-source root as usual and compile with:
gcc imaptest.c -o imaptest -Wall -W -I. -Isrc/lib -DHAVE_CONFIG_H
src/lib/liblib.a
As per Timo's instructions.
# imaptest -h imaptest [USER at IP:PORTNO] [pass=PASSWORD] [mbox=MBOX]
[clients=CC] [msgs=NMSG] [use_authenticate] [PORTNO]
USER = template for
2019 May 19
2
Dict issue with PostgreSQL for last_login plugin (duplicate key)
On 19/05/2019 16:25, John Fawcett via dovecot wrote:
> INSERT INTO last_logins (last_login,username,domain) VALUES (1558273000,'user at domain.tld','domain.tld')
I don't have PostgresSql, would you be able to verify if this syntax would work:
INSERT INTO last_logins (last_login,username,domain) VALUES (1558273000,'user at domain.tld','domain.tld')
2016 Oct 06
2
[imap-login] SSL related crashes using the latest 2.2.25
...prev = 0x0, cleanup = 0x0, canceltype = 4214640}}}
not_first_call = <value optimized out>
#16 0x00000000004029c9 in _start ()
No symbol table info available.
Core was generated by `dovecot/imap-login -D'.
Program terminated with signal 11, Segmentation fault.
#0 t_strcut (str=0xffffffffffffffff <Address 0xffffffffffffffff out of
bounds>, cutchar=64 '@') at strfuncs.c:294
294 for (p = str; *p != '\0'; p++) {
(gdb) bt full
#0 t_strcut (str=0xffffffffffffffff <Address 0xffffffffffffffff out of
bounds>, cutchar=64 '@') at strfunc...
2019 May 19
2
Dict issue with PostgreSQL for last_login plugin (duplicate key)
...DATE SET ",fields[0].map->username_field);
+ } else {
*stmt_r = sql_dict_transaction_stmt_init(ctx, str_c(prefix), ¶ms);
return 0;
}
- str_append(prefix, " ON DUPLICATE KEY UPDATE ");
for (i = 0; i < field_count; i++) {
const char *first_value_field =
t_strcut(fields[i].map->value_field, ',');
2017 Nov 01
2
Bug: lmtp proxy does not quote local parts with spaces
...ib-mail/mail-user-hash.c 2017-10-05 18:10:44.000000000 +0100
+++ dovecot-2.2.33.2/src/lib-mail/mail-user-hash.c 2017-10-31 16:21:20.424866755 +0000
@@ -33,9 +33,13 @@
tab = t_malloc(sizeof(static_tab));
memcpy(tab, static_tab, sizeof(static_tab));
tab[0].value = username;
- tab[1].value = t_strcut(username, '@');
- tab[2].value = strchr(username, '@');
- if (tab[2].value != NULL) tab[2].value++;
+ tab[2].value = strrchr(username, '@');
+ if (tab[2].value != NULL) {
+ tab[1].value = t_strndup(username, tab[2].value - username);
+ tab[2].value++;
+ } else {
+...
2017 Nov 03
1
Bug: lmtp proxy does not quote local parts with spaces
...hash.c 2017-10-05 18:10:44.000000000 +0100
+++ dovecot-2.2.33.2.reverse-domaincut/src/lib-mail/mail-user-hash.c 2017-11-02 16:04:03.724866755 +0000
@@ -33,9 +33,13 @@
tab = t_malloc(sizeof(static_tab));
memcpy(tab, static_tab, sizeof(static_tab));
tab[0].value = username;
- tab[1].value = t_strcut(username, '@');
- tab[2].value = strchr(username, '@');
- if (tab[2].value != NULL) tab[2].value++;
+ tab[2].value = strrchr(username, '@');
+ if (tab[2].value != NULL) {
+ tab[1].value = t_strdup_until(username, tab[2].value);
+ tab[2].value++;
+ } else {
+ tab[1...
2008 Nov 07
6
Cannot get the libwrap patch work
Hello there,
I have been trying to make the patch work for libwrap(TCP
Wrappers) posted on http://dovecot.org/patches
<http://dovecot.org/patches%20Patch%20of%201.1> Patch of 1.1 but could not
get it work. Any help will be highly appreciated. After compiling and
running it I get error "Error: login_tcp_wrappers can't be used because
Dovecot wasn't built with
2019 May 19
4
Dict issue with PostgreSQL for last_login plugin (duplicate key)
...key DO UPDATE SET ",fields[0].map->table);
+ } else {
*stmt_r = sql_dict_transaction_stmt_init(ctx, str_c(prefix), ¶ms);
return 0;
}
- str_append(prefix, " ON DUPLICATE KEY UPDATE ");
for (i = 0; i < field_count; i++) {
const char *first_value_field =
t_strcut(fields[i].map->value_field, ',');
2017 Oct 26
2
Bug: lmtp proxy does not quote local parts with spaces
On 26/10/2017 18:38, Alexander Dalloz wrote:
> Am 26.10.2017 um 12:20 schrieb David Zambonini:
>>
>> There seems to be a bug with RFC822 processing in ltmp proxying that
>> doesn't
>> quote local parts that, for example, contain spaces.
>
> Newer related RFCs are RFC 5321 and 5322.
Typo, meant to say RFC2822, which they still supercede, not that the
2008 Nov 08
1
dovecot Digest, Vol 67, Issue 19
...rocess_name = process_name == NULL ? argv[0] : process_name+1;
+
if (is_inetd) {
/* running from inetd. create master process before
dropping privileges. */
- process_name = strrchr(argv[0], '/');
- process_name = process_name == NULL ? argv[0] :
process_name+1;
group_name = t_strcut(process_name, '-');
for (i = 1; i < argc; i++) {
--- src/master/login-process.c.orig 2008-06-12 23:38:01.000000000 +0200
+++ src/master/login-process.c 2008-07-07 19:51:45.000000000 +0200
@@ -573,6 +573,8 @@
env_put(t_strconcat("LOG_FORMAT=", set->login_log_format, NU...