summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChristophe Fergeau <teuf@gnome.org>2007-09-28 07:19:44 +0000
committerChristophe Fergeau <teuf@gnome.org>2007-09-28 07:19:44 +0000
commit6a15b6cf5869cfe28ff5e96c6f303dc7ef06c4a1 (patch)
tree097521f5d87caafab0ddccff53a571e4c7f3e3a0 /tools
parent760a30affc977b4c3137e544ab5c4ef56ec3bdea (diff)
downloadlibgpod-6a15b6cf5869cfe28ff5e96c6f303dc7ef06c4a1.tar.gz
libgpod-6a15b6cf5869cfe28ff5e96c6f303dc7ef06c4a1.tar.xz
libgpod-6a15b6cf5869cfe28ff5e96c6f303dc7ef06c4a1.zip
* 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
Diffstat (limited to 'tools')
-rw-r--r--tools/read-sysinfoextended-sgutils.c3
1 files changed, 1 insertions, 2 deletions
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"),