summaryrefslogtreecommitdiffstats
path: root/tools/hal-callout.c
diff options
context:
space:
mode:
authorChristophe Fergeau <teuf@gnome.org>2007-11-08 08:52:39 +0000
committerChristophe Fergeau <teuf@gnome.org>2007-11-08 08:52:39 +0000
commit9e8434616d15f4a0512b8d6435bfd1edc15d810a (patch)
tree6d7053f70d4cbfb41e628eb3d13708a19e7edd0c /tools/hal-callout.c
parent56211bd6c6b32eb61bc9df07083b891b6dffc516 (diff)
downloadlibgpod-9e8434616d15f4a0512b8d6435bfd1edc15d810a.tar.gz
libgpod-9e8434616d15f4a0512b8d6435bfd1edc15d810a.tar.xz
libgpod-9e8434616d15f4a0512b8d6435bfd1edc15d810a.zip
* tools/hal-callout.c: (mount_ipod): use g_get_tmp_dir instead of
hardcoding /tmp git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1763 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'tools/hal-callout.c')
-rw-r--r--tools/hal-callout.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/hal-callout.c b/tools/hal-callout.c
index 7c4a589..39266fc 100644
--- a/tools/hal-callout.c
+++ b/tools/hal-callout.c
@@ -49,8 +49,7 @@ static char *mount_ipod (const char *dev_path)
if (fstype == NULL) {
return NULL;
}
- filename = g_build_filename (G_DIR_SEPARATOR_S, "tmp", "ipodXXXXXX",
- NULL);
+ filename = g_build_filename (g_get_tmp_dir (), "ipodXXXXXX", NULL);
if (filename == NULL) {
return NULL;
}