syslog(LOG_DEBUG, "Imported config key=%s", ikey);
if (ikey != NULL) {
- CtdlSetConfigStr(ikey, ChrPtr(migr_chardata));
+ CtdlSetConfigStr(ikey, (char *)ChrPtr(migr_chardata));
free(ikey);
ikey = NULL;
}
}
-
/******************************************************************************
* Dispatcher, Common code *
******************************************************************************/
cprintf("files|%s\n", ctdl_file_dir);
cprintf("messages|%s\n", ctdl_message_dir);
cprintf("keys|%s\n", ctdl_key_dir);
- cprintf("images|%s\n", ctdl_image_dir);
cprintf("000\n");
}
+
/******************************************************************************
* Repair database integrity *
******************************************************************************/
int rv = 0;
rv += create_dir(ctdl_message_dir , S_IRUSR|S_IWUSR|S_IXUSR, UID, -1);
rv += create_dir(ctdl_hlp_dir , S_IRUSR|S_IWUSR|S_IXUSR, UID, -1);
- rv += create_dir(ctdl_image_dir , S_IRUSR|S_IWUSR|S_IXUSR, UID, -1);
rv += create_dir(ctdl_bb_dir , S_IRUSR|S_IWUSR|S_IXUSR, UID, -1);
rv += create_dir(ctdl_file_dir , S_IRUSR|S_IWUSR|S_IXUSR, UID, -1);
rv += create_dir(ctdl_spool_dir , S_IRUSR|S_IWUSR|S_IXUSR, UID, -1);
snprintf(cmd, sizeof cmd, "rsync -va --rsh='ssh -S %s' %s@%s:%s/ %s/",
socket_path, remote_user, remote_host, &buf[5], ctdl_key_dir);
}
- else if (!strncasecmp(buf, "images|", 7)) {
- snprintf(cmd, sizeof cmd, "rsync -va --rsh='ssh -S %s' %s@%s:%s/ %s/",
- socket_path, remote_user, remote_host, &buf[7], ctdl_image_dir);
- }
else {
strcpy(cmd, "false"); /* cheap and sleazy way to throw an error */
}