diff options
| author | Ray Strode <rstrode@redhat.com> | 2007-10-21 18:34:11 -0400 |
|---|---|---|
| committer | Ray Strode <rstrode@redhat.com> | 2007-10-21 18:34:11 -0400 |
| commit | d12eaca1051f8a5227286daf7fa94cad2ea29b3a (patch) | |
| tree | f5f49e772169116ba715da05907587a070bcd5de /src/libply | |
| parent | b41b2a8ed464d39afde09e6c13054a176ad34f6d (diff) | |
| download | plymouth-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.c | 2 |
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); |
