commit 21f77daa46642f95d30790e374bc412bb5d4217c
Author: Christophe Fergeau <cferg...@mandriva.com>
Date:   Sun Mar 28 22:55:32 2010 +0200

    change 2 more mkdir to g_mkdir for better portability

 src/db-artwork-parser.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/db-artwork-parser.c b/src/db-artwork-parser.c
index fbaf0b5..be62f17 100644
--- a/src/db-artwork-parser.c
+++ b/src/db-artwork-parser.c
@@ -40,6 +40,7 @@
 #include "db-itunes-parser.h"
 #include "db-parse-context.h"
 #include <glib/gi18n-lib.h>
+#include <glib/gstdio.h>
 
 typedef int (*ParseListItem)(DBParseContext *ctx, GError *error);
 
@@ -679,7 +680,7 @@ ipod_db_get_artwork_db_path (const char *mount_point)
                if (control_dir)
                {
                    gchar *dir = g_build_filename (control_dir, "Artwork", 
NULL);
-                   mkdir (dir, 0777);
+                   g_mkdir (dir, 0777);
                    g_free (control_dir);
                    g_free (dir);
                    artwork_dir = itdb_get_artwork_dir (mount_point);
@@ -757,7 +758,7 @@ ipod_db_get_photos_db_path (const char *mount_point)
            {
                /* attempt to create Photos dir */
                gchar *dir = g_build_filename (mount_point, "Photos", NULL);
-               mkdir (dir, 0777);
+               g_mkdir (dir, 0777);
                g_free (dir);
                photos_dir = itdb_get_photos_dir (mount_point);
            }

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gtkpod-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to