|
|
|
@ -382,6 +382,17 @@ int main(int argc, char *argv[]) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
r_temp_file.ok_ref().first.close();
|
|
|
|
r_temp_file.ok_ref().first.close();
|
|
|
|
td::unlink(r_temp_file.ok().second).ensure();
|
|
|
|
td::unlink(r_temp_file.ok().second).ensure();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
auto r_temp_dir = td::mkdtemp(working_directory, "1:a");
|
|
|
|
|
|
|
|
if (r_temp_dir.is_error()) {
|
|
|
|
|
|
|
|
parameters->allow_colon_in_filenames_ = false;
|
|
|
|
|
|
|
|
r_temp_dir = td::mkdtemp(working_directory, "1~a");
|
|
|
|
|
|
|
|
if (r_temp_dir.is_error()) {
|
|
|
|
|
|
|
|
return td::Status::Error(PSLICE() << "Can't create directories in the directory \"" << working_directory
|
|
|
|
|
|
|
|
<< "\". Use --dir option to specify a writable working directory");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
td::rmdir(r_temp_dir.ok()).ensure();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!temporary_directory.empty()) {
|
|
|
|
if (!temporary_directory.empty()) {
|
|
|
|
|