mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-21 02:50:37 +03:00
glnx porting: Drop last uses of gs_file_get_basename_cached()
I apparently missed a few uses in the previous porting. Closes: #319 Approved by: jlebon
This commit is contained in:
parent
b5da2f524c
commit
a79c47415a
@ -756,12 +756,12 @@ selinux_relabel_file (OstreeSysroot *sysroot,
|
||||
goto out;
|
||||
|
||||
g_ptr_array_add (path_parts, (char*)prefix);
|
||||
g_ptr_array_add (path_parts, (char*)gs_file_get_basename_cached (path));
|
||||
g_ptr_array_add (path_parts, (char*)g_file_info_get_name (file_info));
|
||||
if (!relabel_one_path (sysroot, sepolicy, path, file_info, path_parts,
|
||||
cancellable, error))
|
||||
{
|
||||
g_prefix_error (error, "Relabeling /%s/%s: ", prefix,
|
||||
gs_file_get_basename_cached (path));
|
||||
g_file_info_get_name (file_info));
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
@ -358,7 +358,7 @@ ot_gfile_replace_contents_fsync (GFile *path,
|
||||
{
|
||||
gboolean ret = FALSE;
|
||||
int parent_dfd;
|
||||
const char *target_basename = gs_file_get_basename_cached (path);
|
||||
const char *target_basename = glnx_basename (gs_file_get_path_cached (path));
|
||||
g_autoptr(GFile) parent = NULL;
|
||||
|
||||
parent = g_file_get_parent (path);
|
||||
@ -447,7 +447,7 @@ ot_util_ensure_directory_and_fsync (GFile *dir,
|
||||
{
|
||||
gboolean ret = FALSE;
|
||||
int parentfd = -1;
|
||||
const char *basename = gs_file_get_basename_cached (dir);
|
||||
const char *basename = glnx_basename (gs_file_get_path_cached (dir));
|
||||
g_autoptr(GFile) parent = g_file_get_parent (dir);
|
||||
|
||||
again:
|
||||
|
Loading…
x
Reference in New Issue
Block a user