]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
don't error out if the directory already exists in the mkdir function
authorRay Strode <rstrode@redhat.com>
Sun, 21 Oct 2007 22:34:11 +0000 (18:34 -0400)
committerRay Strode <rstrode@redhat.com>
Sun, 21 Oct 2007 22:34:11 +0000 (18:34 -0400)
src/libply/ply-utils.c

index 0bd901b477b41b527f403624c4519c33ab150df2..e1d7a287421219fcd7a18cda39183727528d0563 100644 (file)
@@ -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);