commit 34563416c3c9d41f3bb8c6aebeab671acd8937ca
Author: Christophe Fergeau <cferg...@mandriva.com>
Date:   Mon Apr 5 22:11:43 2010 +0200

    create Device dir in hal/udev callout
    
    The Shuffle also has SysInfoExtended data, but has no Device dir
    so make sure we create it if needed to get a SysInfoExtended file
    on these devices too

 tools/generic-callout.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tools/generic-callout.c b/tools/generic-callout.c
index f0697db..4415eb1 100644
--- a/tools/generic-callout.c
+++ b/tools/generic-callout.c
@@ -592,9 +592,9 @@ static gboolean write_sysinfo_extended (const char 
*mountpoint,
         gboolean result;
 
         devdirpath = itdb_get_device_dir (mountpoint);
-        if (devdirpath == NULL) {
-                return FALSE;
-        }
+        /* Make sure the device dir exists (not necessarily true on
+         * Shuffles */
+        g_mkdir (devdirpath, 0777);
         filename = g_build_filename (devdirpath, "SysInfoExtended", NULL);
         g_free (devdirpath);
         if (filename == NULL) {

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