commit a2c1db8fe523c5154cc30dea14b936093480e733
Author: Christophe Fergeau <cferg...@mandriva.com>
Date:   Thu Apr 1 21:47:06 2010 +0200

    pass an absolute path to afc_make_directory
    
    afc_make_directory needs an absolute path to work as expected, and
    g_build_filename returns a relative filename when its 1st argument
    is relative, prepend a G_DIR_SEPARATOR_S first to make it absolute

 tools/ipod-lockdown.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/tools/ipod-lockdown.c b/tools/ipod-lockdown.c
index 9d75093..360890c 100644
--- a/tools/ipod-lockdown.c
+++ b/tools/ipod-lockdown.c
@@ -148,7 +148,9 @@ iphone_write_sysinfo_extended (const char *uuid, const char 
*xml)
                idevice_free(device);
                return FALSE;
        }
-       dest_directory = g_build_filename("iTunes_Control", "Device", NULL);
+       dest_directory = g_build_filename(G_DIR_SEPARATOR_S,
+                                         "iTunes_Control", "Device",
+                                         NULL);
        afc_ret = afc_make_directory(afc, dest_directory);
        if ((AFC_E_SUCCESS != ret) && (AFC_E_OBJECT_EXISTS != ret)) {
                g_free (dest_directory);

------------------------------------------------------------------------------
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