search for: str_append_n

Displaying 6 results from an estimated 6 matches for "str_append_n".

Did you mean: str_append_c
2019 Dec 04
2
Rootless wiki page is not up to date?
If I run a docker image with the mesos containerizer and altering the dovecot config mentioned here[1] I think the root detection is incorrect because it looks like dovecot is still thinking it is root. I still get errors like: >> log(829825): Fatal: We couldn't drop root group privileges (wanted=10053(dovecot), gid=0(root), egid=0(root)) Why does it want to drop to root, if we
2020 Aug 19
0
/usr/include/dovecot/str.h
...getting this build[1] error. I think these header files of dovecot are not correct. Or are they? I changed line 35 in /usr/include/dovecot/str.h from str_append_max(str, cstr, max_len); to str_append_max(str, (const char *)cstr, max_len); [1] /usr/include/dovecot/str.h: In function 'void str_append_n(string_t*, const void*, size_t)': /usr/include/dovecot/str.h:35:22: error: invalid conversion from 'const void*' to 'const char*' [-fpermissive] 35 | str_append_max(str, cstr, max_len); | ^~~~ | | |...
2016 Jul 26
2
[BUG] Re: auth_bind with "()" in username not working
Hi guys, I had a look in the sources about this problem. the problem seems to be the ldap_escape function that is called from ldap_verify_plain_auth_bind_userdn(..) I dont really know if this escaping is needed at this point, but with this change it works for me. No other problems discovered so far. could somebody, who is deeper in the sources give me a hint if this will make some troubles?
2005 Sep 09
1
1.0alpha1: stack frame core
...l-datastack.c:112 #5 0x00067d60 in buffer_alloc (buf=0x98500, size=1024) at buffer.c:32 #6 0x00067fb0 in buffer_write (_buf=Variable "_buf" is not available. ) at buffer.c:57 #7 0x00067ff4 in buffer_append (buf=0x98500, data=0x98674, data_size=539) at buffer.c:155 #8 0x0007551c in str_append_n (str=0x98500, cstr=0x98674, max_len=539) at str.c:77 #9 0x0005ffa4 in imap_quote_append (str=0x98500, value=0x98674 "Penguina", '\\' <repeats 192 times>..., value_len=539, compress_lwsp=1) at imap-quote.c:59 #10 0x0005ce64 in parse_save_params_list ( name=0x...
2008 Dec 10
2
assert with zlib and (maybe) fts
Hi, I compressed a folder with the following script: ... for i in *.*.*; do file $i | grep bzip2 >/dev/null 2>&1 if [ $? -ne 0 ]; then echo "Compress: $i" cat "$i" | bzip2 -9 > ../tmp/$i if [ $? -eq 0 ]; then mv ../tmp/$i $i fi else
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...ng to RFC 4469 url-resp-text +const char *imap_url_sanitize(const char *url) +{ + const char *cp; + string_t *str; + + init_allowed(); + + for (cp = url; *cp && url_resp_allowed[(unsigned char) *cp]; cp++) + ; + if (*cp == '\0') + return url; + + str = t_str_new(strlen(cp) + 1); + str_append_n(str, url, cp - url); + for ( ; *cp; cp++) + str_append_c(str, + url_resp_allowed[(unsigned char) *cp] ? *cp : '?'); + return str_c(str); +} diff -Nur dovecot-1.2.11/src/lib-imap/imap-url.h dovecot-1.2.11+lemonade/src/lib-imap/imap-url.h --- dovecot-1.2.11/src/lib-imap/imap-url.h 1969-12-...