bgo492134 - fix tilde expansion in GtkFileSystemUnix
Signed-off-by: Federico Mena Quintero <federico@gnu.org> svn path=/trunk/; revision=19962
This commit is contained in:
committed by
Federico Mena Quintero
parent
5f69cfa964
commit
cf87b6f327
@ -1470,10 +1470,11 @@ expand_tilde (const char *filename)
|
||||
home = passwd->pw_dir;
|
||||
}
|
||||
|
||||
/* We put G_DIR_SEPARATOR_S so that empty basenames will make the resulting path end in a slash */
|
||||
if (slash)
|
||||
return g_build_filename (home, G_DIR_SEPARATOR_S, slash + 1, NULL);
|
||||
else
|
||||
return g_strdup (home);
|
||||
return g_build_filename (home, G_DIR_SEPARATOR_S, NULL);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
||||
Reference in New Issue
Block a user