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:
parent
50b9c30cea
commit
983b69c3f5
@ -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 };
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user