From d12eaca1051f8a5227286daf7fa94cad2ea29b3a Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Sun, 21 Oct 2007 18:34:11 -0400 Subject: don't error out if the directory already exists in the mkdir function --- src/libply/ply-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit