1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

import-fs: create paren dirs in --direct mode too

There's no reason not to create these in advance if they are missing.
This commit is contained in:
Lennart Poettering 2021-08-20 14:22:29 +02:00
parent 50b9c30cea
commit 983b69c3f5

View File

@ -185,10 +185,11 @@ static int import_fs(int argc, char *argv[], void *userdata) {
if (r < 0)
return log_oom();
(void) mkdir_parents_label(temp_path, 0700);
dest = temp_path;
}
(void) mkdir_parents_label(dest, 0700);
progress.limit = (RateLimit) { 200*USEC_PER_MSEC, 1 };
{