projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69efeee
)
g_mkdir_with_parents: cope with dirs popping into existence
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 4 Jun 2011 02:45:51 +0000
(22:45 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 4 Jun 2011 02:45:51 +0000
(22:45 -0400)
Don't bail out if a directory suddenly turns out to exist
after all. Proposed in bug 612729.
glib/gfileutils.c
patch
|
blob
|
history
diff --git
a/glib/gfileutils.c
b/glib/gfileutils.c
index ec1eddf525d0a27dc055654d8e4ee3e983c7c31e..c0e95c0a8779a8eaa1aa3e0c9cf6a8bf663cb7b7 100644
(file)
--- a/
glib/gfileutils.c
+++ b/
glib/gfileutils.c
@@
-102,7
+102,7
@@
g_mkdir_with_parents (const gchar *pathname,
if (!g_file_test (fn, G_FILE_TEST_EXISTS))
{
- if (g_mkdir (fn, mode) == -1)
+ if (g_mkdir (fn, mode) == -1
&& errno != EEXIST
)
{
int errno_save = errno;
g_free (fn);