From ff856368cc4d49c3403a206b9f4b66c7cbc7f6be Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Fri, 28 Sep 2007 07:19:44 +0000 Subject: * tools/read-sysinfoextended-sgutils.c: (main): use g_build_filename instead of itdb_resolve_filename since the latter will fail if SysInfoExtended does not already exist git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1706 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- ChangeLog | 6 ++++++ tools/read-sysinfoextended-sgutils.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index eab25d0..8e3673d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-09-28 Christophe Fergeau + + * tools/read-sysinfoextended-sgutils.c: (main): use g_build_filename + instead of itdb_resolve_filename since the latter will fail if + SysInfoExtended does not already exist + 2007-09-27 Christophe Fergeau * configure.ac: build tool to generate the iPod SysInfoExtended file diff --git a/tools/read-sysinfoextended-sgutils.c b/tools/read-sysinfoextended-sgutils.c index 268626f..76592fd 100644 --- a/tools/read-sysinfoextended-sgutils.c +++ b/tools/read-sysinfoextended-sgutils.c @@ -119,7 +119,6 @@ main (int argc, char **argv) const char *mountpoint = argv[2]; char *device_path; char *filename; - const char *components[] = { "SysInfoExtended", NULL }; gboolean success; device_path = itdb_get_device_dir (mountpoint); @@ -130,7 +129,7 @@ main (int argc, char **argv) return 1; } - filename = itdb_resolve_path (device_path, components); + filename = g_build_filename (device_path, "SysInfoExtended", NULL); g_free (device_path); if (filename == NULL) { g_print (_("Couldn't resolve SysInfoExtended path on %s"), -- cgit