[dovecot-cvs] dovecot/src/auth db-ldap.c, 1.37, 1.38 db-sql.c, 1.4,
1.5
cras at dovecot.org
cras at dovecot.org
Wed Jan 18 18:53:22 EET 2006
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv9831
Modified Files:
db-ldap.c db-sql.c
Log Message:
Give a clear error message if SQL/LDAP configuration file path was left
empty.
Index: db-ldap.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/db-ldap.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- db-ldap.c 14 Jan 2006 18:47:20 -0000 1.37
+++ db-ldap.c 18 Jan 2006 16:53:20 -0000 1.38
@@ -406,6 +406,9 @@
return conn;
}
+ if (*config_path == '\0')
+ i_fatal("LDAP: Configuration file path not given");
+
pool = pool_alloconly_create("ldap_connection", 1024);
conn = p_new(pool, struct ldap_connection, 1);
conn->pool = pool;
Index: db-sql.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/db-sql.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- db-sql.c 14 Jan 2006 18:47:20 -0000 1.4
+++ db-sql.c 18 Jan 2006 16:53:20 -0000 1.5
@@ -62,6 +62,9 @@
return conn;
}
+ if (*config_path == '\0')
+ i_fatal("LDAP: Configuration file path not given");
+
pool = pool_alloconly_create("sql_connection", 1024);
conn = p_new(pool, struct sql_connection, 1);
conn->pool = pool;
More information about the dovecot-cvs
mailing list