diff options
| author | root <root@halfline-d630.boston.devel.redhat.com> | 2008-05-28 11:28:41 -0400 |
|---|---|---|
| committer | root <root@halfline-d630.boston.devel.redhat.com> | 2008-05-28 11:28:41 -0400 |
| commit | a85a1f35d9bb3d3dd75d5f05593abdd1273129b8 (patch) | |
| tree | eae354d0b58788ca668c5c6ebf2124bbe4b7b506 /src/libply/ply-utils.c | |
| parent | d569136d52f98771c9879758e4a34abcf61bfc1c (diff) | |
| download | plymouth-a85a1f35d9bb3d3dd75d5f05593abdd1273129b8.tar.gz plymouth-a85a1f35d9bb3d3dd75d5f05593abdd1273129b8.tar.xz plymouth-a85a1f35d9bb3d3dd75d5f05593abdd1273129b8.zip | |
When copying a directory, be sure the destination directory is in place first
Diffstat (limited to 'src/libply/ply-utils.c')
| -rw-r--r-- | src/libply/ply-utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libply/ply-utils.c b/src/libply/ply-utils.c index 910b571..8c68a16 100644 --- a/src/libply/ply-utils.c +++ b/src/libply/ply-utils.c @@ -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) |
