From: Ray Strode Date: Sun, 21 Oct 2007 22:34:11 +0000 (-0400) Subject: don't error out if the directory already exists in the mkdir function X-Git-Tag: 0.1.0~143^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d12eaca1051f8a5227286daf7fa94cad2ea29b3a;p=thirdparty%2Fplymouth.git don't error out if the directory already exists in the mkdir function --- diff --git a/src/libply/ply-utils.c b/src/libply/ply-utils.c index 0bd901b4..e1d7a287 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);