diff options
author | Vsevolod Stakhov <vsevolod@FreeBSD.org> | 2015-10-14 21:04:07 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@FreeBSD.org> | 2015-10-14 21:04:07 +0000 |
commit | 6c1b71aa6419495f2af88aad01afc389f261ceba (patch) | |
tree | 907694f18ffe336efa8edc0ffcba5087497fc405 | |
parent | a97a223d283fd863279c323de2ee4ca87a815494 (diff) | |
download | ports-6c1b71aa6419495f2af88aad01afc389f261ceba.tar.gz ports-6c1b71aa6419495f2af88aad01afc389f261ceba.zip |
Notes
-rw-r--r-- | mail/rspamd/Makefile | 2 | ||||
-rw-r--r-- | mail/rspamd/files/patch-src-libutil-addr.c | 30 |
2 files changed, 31 insertions, 1 deletions
diff --git a/mail/rspamd/Makefile b/mail/rspamd/Makefile index bc0750384f04..267444253487 100644 --- a/mail/rspamd/Makefile +++ b/mail/rspamd/Makefile @@ -2,7 +2,7 @@ PORTNAME= rspamd PORTVERSION= 1.0.5 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= mail MASTER_SITES= http://rspamd.com/downloads/ diff --git a/mail/rspamd/files/patch-src-libutil-addr.c b/mail/rspamd/files/patch-src-libutil-addr.c new file mode 100644 index 000000000000..f05c3f815a6e --- /dev/null +++ b/mail/rspamd/files/patch-src-libutil-addr.c @@ -0,0 +1,30 @@ +diff --git a/src/libutil/addr.c b/src/libutil/addr.c +index 5958e9e..7d0d5fe 100644 +--- src/libutil/addr.c ++++ src/libutil/addr.c +@@ -279,7 +279,7 @@ static gboolean + rspamd_parse_unix_path (rspamd_inet_addr_t **target, const char *src) + { + gchar **tokens, **cur_tok, *p, *pwbuf; +- gint pwlen; ++ glong pwlen; + struct passwd pw, *ppw; + struct group gr, *pgr; + rspamd_inet_addr_t *addr; +@@ -299,8 +299,15 @@ rspamd_parse_unix_path (rspamd_inet_addr_t **target, const char *src) + addr->u.un->group = (gid_t)-1; + + cur_tok = &tokens[1]; ++#ifdef _SC_GETPW_R_SIZE_MAX + pwlen = sysconf (_SC_GETPW_R_SIZE_MAX); +- g_assert (pwlen > 0); ++ if (pwlen <= 0) { ++ pwlen = 8192; ++ } ++#else ++ pwlen = 8192; ++#endif ++ + pwbuf = g_alloca (pwlen); + + while (*cur_tok) { |