glnx porting: Port away from gs_file_get_basename_cached()

In some cases we use glnx_basename(), in others we already had a
`GFileInfo` around with the name.

Closes: #316
Approved by: jlebon
This commit is contained in:
Colin Walters authored and Atomic Bot committed 2016-06-02 14:52:40 +00:00
1 parent 900c085f21
commit eaea07fe43
4 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -684,7 +684,7 @@ relabel_recursively (OstreeSysroot *sysroot,
if (file_info == NULL)
break;
g_ptr_array_add (path_parts, (char*)gs_file_get_basename_cached (child));
g_ptr_array_add (path_parts, (char*)g_file_info_get_name (file_info));
ftype = g_file_info_get_file_type (file_info);
if (ftype == G_FILE_TYPE_DIRECTORY)