mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 13:38:45 +02:00
When copying a directory, be sure the destination directory is in place first
This commit is contained in:
parent
d569136d52
commit
a85a1f35d9
1 changed files with 3 additions and 0 deletions
|
|
@ -927,6 +927,9 @@ ply_copy_directory (const char *source,
|
|||
if (dir == NULL)
|
||||
return false;
|
||||
|
||||
if (!ply_create_directory (destination))
|
||||
return false;
|
||||
|
||||
while ((entry = readdir (dir)) != NULL)
|
||||
{
|
||||
if (strcmp (entry->d_name, ".") == 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue