doveadm-dsync.c revision 707f172cd4e4c91af86ff5bd82a60a873dec6f70
121N/A#include "lib-signals.h"
121N/A#include "execv-const.h"
121N/A#include "fd-set-nonblock.h"
121N/A#include "iostream-rawlog.h"
121N/A#include "var-expand.h"
121N/A#include "settings-parser.h"
121N/A#include "master-service.h"
121N/A#include "mail-storage-service.h"
121N/A#include "mail-user.h"
127N/A#include "mail-namespace.h"
127N/A#include "mailbox-list.h"
121N/A#include "doveadm-settings.h"
121N/A#include "doveadm-mail.h"
121N/A#include "dsync-brain.h"
121N/A#include "dsync-ibc.h"
121N/A#include "doveadm-dsync.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
struct dsync_cmd_context {
const char *remote_name;
const char *local_location;
unsigned int lock_timeout;
if (ret > 0) {
switch (fork()) {
const char *const **cmd_args_r)
p = argv[i];
if (legacy_dsync) {
const char *user,
const char *const **cmd_args_r)
return TRUE;
if (!i_isalnum(*p)) {
return FALSE;
return TRUE;
return TRUE;
i_unreached();
&path1) &&
&path2) &&
static struct dsync_ibc *
int ret = 0;
if (doveadm_debug)
return ret;
const char **error_r)
const char *const args[])
return FALSE;
return FALSE;
return TRUE;
return _ctx;
return FALSE;
return TRUE;
const char *getopt_str;
if (flag_m) {
if (flag_u) {
if (flag_C) {
if (!dsync_server) {
if (flag_f)
if (flag_R)