summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendtrash.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2008-02-19 09:47:30 +0000
committerAlexander Larsson <alexl@src.gnome.org>2008-02-19 09:47:30 +0000
commit40ff74bc3e7ce64d63dafcfb57052caae0b5344d (patch)
treed99ab60bd531990a7c86325cd1e3d644f1e25a5f /daemon/gvfsbackendtrash.c
parentb64547deb808046b8bac687242ab777c0bf0d73a (diff)
downloadgvfs-40ff74bc3e7ce64d63dafcfb57052caae0b5344d.tar.gz
Some more cleanup.
2008-02-19 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendsftp.c: * daemon/gvfsbackendtrash.c: * gconf/gapplookupgconf.c: * test/benchmark-common.c: Some more cleanup. svn path=/trunk/; revision=1303
Diffstat (limited to 'daemon/gvfsbackendtrash.c')
-rw-r--r--daemon/gvfsbackendtrash.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/daemon/gvfsbackendtrash.c b/daemon/gvfsbackendtrash.c
index 6a26f52e..10e883a6 100644
--- a/daemon/gvfsbackendtrash.c
+++ b/daemon/gvfsbackendtrash.c
@@ -201,8 +201,9 @@ unescape_pathname (const char *escaped_dir, int len)
{
char *trashname;
trashname = g_strndup (escaped_dir + 1, len - 1);
- return g_build_filename (g_get_user_data_dir (), "Trash", trashname, NULL);
+ dir = g_build_filename (g_get_user_data_dir (), "Trash", trashname, NULL);
g_free (trashname);
+ return dir;
}
dir = g_malloc (len + 1 + 1);
@@ -553,7 +554,7 @@ list_trash_dirs (void)
if (info & HAS_SYSTEM_DIR)
{
- basename = g_strdup_printf ("%d", getuid());
+ basename = g_strdup_printf ("%u", getuid());
trashdir = g_build_filename (topdir, ".Trash", basename, NULL);
g_free (basename);
dirs = g_list_prepend (dirs, trashdir);
@@ -561,7 +562,7 @@ list_trash_dirs (void)
if (info & HAS_USER_DIR)
{
- basename = g_strdup_printf (".Trash-%d", getuid());
+ basename = g_strdup_printf (".Trash-%u", getuid());
trashdir = g_build_filename (topdir, basename, NULL);
g_free (basename);
dirs = g_list_prepend (dirs, trashdir);