summaryrefslogtreecommitdiffstats
path: root/tools/read-sysinfoextended-sgutils.c
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
commitff856368cc4d49c3403a206b9f4b66c7cbc7f6be (patch)
tree097521f5d87caafab0ddccff53a571e4c7f3e3a0 /tools/read-sysinfoextended-sgutils.c
parentf01ad6ef25070838d2244ff4579c3b4fed34ca76 (diff)
downloadlibgpod-ff856368cc4d49c3403a206b9f4b66c7cbc7f6be.tar.gz
libgpod-ff856368cc4d49c3403a206b9f4b66c7cbc7f6be.tar.xz
libgpod-ff856368cc4d49c3403a206b9f4b66c7cbc7f6be.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/read-sysinfoextended-sgutils.c')
-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"),