Skip to content

Commit

Permalink
wip test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewarmtemp committed Jun 17, 2024
1 parent 2aa47a8 commit 1b2e9af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libostree/ostree-repo-static-delta-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,9 @@ ostree_repo_static_delta_execute_offline_with_signature (OstreeRepo *self, GFile
return glnx_throw_errno_prefix (error, "openat(O_DIRECTORY)");
else
{
char ch = '.';
if (dir_or_file_path[strlen(dir_or_file_path) - 1] == G_DIR_SEPARATOR)
strncat(dir_or_file_path, &ch, 1);
g_autofree char *dir = g_path_get_dirname (dir_or_file_path);
basename = g_path_get_basename (dir_or_file_path);

Expand Down

0 comments on commit 1b2e9af

Please sign in to comment.