10 |
|
{ |
11 |
|
this->host = host; |
12 |
|
|
13 |
< |
configurate(); |
13 |
> |
good = configurate(); |
14 |
|
} |
15 |
|
|
16 |
|
string Configurator::password(const string& user) |
57 |
|
return password; |
58 |
|
} |
59 |
|
|
60 |
< |
void Configurator::configurate() |
60 |
> |
bool Configurator::configurate() |
61 |
|
{ |
62 |
|
if (config.hosts.count(host) < 2) |
63 |
|
{ |
64 |
|
cerr << program << ": " << host << ": No configuration\n"; |
65 |
< |
exit(1); |
65 |
> |
return false; |
66 |
|
} |
67 |
|
|
68 |
|
for (multimap<string, string>::iterator itor = |
128 |
|
if (passwd.size() == 0) |
129 |
|
{ |
130 |
|
cerr << program << ": " << host << ": No passwd configuration\n"; |
131 |
< |
exit(1); |
131 |
> |
return false; |
132 |
|
} |
133 |
|
|
134 |
|
if (regular.local == "" || regular.remote == "") |
135 |
|
{ |
136 |
|
cerr << program << ": " << host << ": No * folder configuration\n"; |
137 |
< |
exit(1); |
137 |
> |
return false; |
138 |
|
} |
139 |
|
|
140 |
|
if (debug) |
180 |
|
|
181 |
|
cerr << "}\n"; |
182 |
|
} |
183 |
+ |
|
184 |
+ |
return true; |
185 |
|
} |