]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
When copying a directory, be sure the destination directory is in place first
authorroot <root@halfline-d630.boston.devel.redhat.com>
Wed, 28 May 2008 15:28:41 +0000 (11:28 -0400)
committerroot <root@halfline-d630.boston.devel.redhat.com>
Wed, 28 May 2008 15:28:41 +0000 (11:28 -0400)
src/libply/ply-utils.c

index 910b5712dd76345158f0443b02d333288740e6cf..8c68a1659b8ce9cdf7b0eb8f2fc7016ec412f1b2 100644 (file)
@@ -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)