{
struct otp_auth_request *request =
(struct otp_auth_request *)auth_request;
- const char *authzid, *authenid, *error;
+ const char *authenid, *error;
size_t i, count;
/* authorization ID \0 authentication ID
FIXME: we'll ignore authorization ID for now. */
- authzid = (const char *) data;
authenid = NULL;
count = 0;
{
struct auth_request *auth_request = sql_request->auth_request;
enum passdb_result passdb_result;
- const char *user, *password, *scheme;
+ const char *password, *scheme;
int ret;
passdb_result = PASSDB_RESULT_INTERNAL_FAILURE;
- user = auth_request->user;
password = NULL;
ret = sql_result_next_row(result);
static int create_inbox(struct mailbox *box)
{
- const char *inbox_path, *rootdir;
+ const char *inbox_path;
int fd;
inbox_path = mailbox_list_get_path(box->list, "INBOX",
MAILBOX_LIST_PATH_TYPE_MAILBOX);
- rootdir = mailbox_list_get_path(box->list, NULL,
- MAILBOX_LIST_PATH_TYPE_DIR);
fd = open(inbox_path, O_RDWR | O_CREAT | O_EXCL, 0660);
if (fd == -1 && errno == EACCES) {