mirror of https://github.com/BOINC/boinc.git
db_dump: terminate with error if directory can't be created
This commit is contained in:
parent
b96e867a2b
commit
1074ec2511
|
@ -837,6 +837,16 @@ int main(int argc, char** argv) {
|
||||||
);
|
);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
retval = boinc_mkdir(spec.output_dir);
|
||||||
|
if (retval) {
|
||||||
|
log_messages.printf(MSG_CRITICAL,
|
||||||
|
"boinc_mkdir(%s): %s; %s\n",
|
||||||
|
spec.output_dir, boincerror(retval), boinc_db.error_string()
|
||||||
|
);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
retval = boinc_db.open(
|
retval = boinc_db.open(
|
||||||
config.replica_db_name,
|
config.replica_db_name,
|
||||||
db_host?db_host:config.replica_db_host,
|
db_host?db_host:config.replica_db_host,
|
||||||
|
@ -855,8 +865,6 @@ int main(int argc, char** argv) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
boinc_mkdir(spec.output_dir);
|
|
||||||
|
|
||||||
unsigned int j;
|
unsigned int j;
|
||||||
for (j=0; j<spec.enumerations.size(); j++) {
|
for (j=0; j<spec.enumerations.size(); j++) {
|
||||||
ENUMERATION& e = spec.enumerations[j];
|
ENUMERATION& e = spec.enumerations[j];
|
||||||
|
|
Loading…
Reference in New Issue