summaryrefslogtreecommitdiffstats
path: root/src/libply
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2007-10-21 18:34:11 -0400
committerRay Strode <rstrode@redhat.com>2007-10-21 18:34:11 -0400
commitd12eaca1051f8a5227286daf7fa94cad2ea29b3a (patch)
treef5f49e772169116ba715da05907587a070bcd5de /src/libply
parentb41b2a8ed464d39afde09e6c13054a176ad34f6d (diff)
downloadplymouth-d12eaca1051f8a5227286daf7fa94cad2ea29b3a.tar.gz
plymouth-d12eaca1051f8a5227286daf7fa94cad2ea29b3a.tar.xz
plymouth-d12eaca1051f8a5227286daf7fa94cad2ea29b3a.zip
don't error out if the directory already exists in the mkdir function
Diffstat (limited to 'src/libply')
-rw-r--r--src/libply/ply-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libply/ply-utils.c b/src/libply/ply-utils.c
index 0bd901b..e1d7a28 100644
--- a/src/libply/ply-utils.c
+++ b/src/libply/ply-utils.c
@@ -682,7 +682,7 @@ ply_create_directory (const char *directory)
char *last_path_component;
bool is_created;
- is_created = false;
+ is_created = errno == EEXIST;
if (errno == ENOENT)
{
parent_directory = strdup (directory);