diff options
author | teuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2007-11-08 08:52:39 +0000 |
---|---|---|
committer | teuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2007-11-08 08:52:39 +0000 |
commit | f675ef993b534c10bce8fb94e2b6e73737e2a5d6 (patch) | |
tree | 6d7053f70d4cbfb41e628eb3d13708a19e7edd0c | |
parent | d0027cfdbcd91b658e95da94df81c268bceca81f (diff) | |
download | libgpod-f675ef993b534c10bce8fb94e2b6e73737e2a5d6.tar.gz libgpod-f675ef993b534c10bce8fb94e2b6e73737e2a5d6.tar.xz libgpod-f675ef993b534c10bce8fb94e2b6e73737e2a5d6.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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tools/hal-callout.c | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2007-11-08 Christophe Fergeau <teuf@gnome.org> + + * tools/hal-callout.c: (mount_ipod): use g_get_tmp_dir instead of + hardcoding /tmp + 2007-11-07 Jorg Schuler <jcsjcs at users.sourceforge.net> * tools/hal-callout.c (mount_ipod): fix bug that prevented 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; } |