dovecot-2.2: master: Fixed a check to see if login directory has...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jan 20 22:20:35 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/e9a8fc0e21c9
changeset: 18188:e9a8fc0e21c9
user: Timo Sirainen <tss at iki.fi>
date: Wed Jan 21 00:19:17 2015 +0200
description:
master: Fixed a check to see if login directory has any unix listeners.
diffstat:
src/master/master-settings.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r df92d09acc63 -r e9a8fc0e21c9 src/master/master-settings.c
--- a/src/master/master-settings.c Tue Jan 20 21:54:58 2015 +0200
+++ b/src/master/master-settings.c Wed Jan 21 00:19:17 2015 +0200
@@ -644,6 +644,7 @@
{
struct service_settings *const *services;
struct file_listener_settings *const *uls;
+ unsigned int dir_len = strlen(dir);
array_foreach(&set->services, services) {
struct service_settings *service = *services;
@@ -652,7 +653,8 @@
array_foreach(&service->unix_listeners, uls) {
struct file_listener_settings *u = *uls;
- if (strncmp(u->path, dir, strlen(dir)) == 0)
+ if (strncmp(u->path, dir, dir_len) == 0 &&
+ u->path[dir_len] == '/')
return TRUE;
}
}
More information about the dovecot-cvs
mailing list