From 1b2e9af61635e3f0c93df4928948885df722010c Mon Sep 17 00:00:00 2001 From: Luke Yang Date: Mon, 17 Jun 2024 11:03:00 -0400 Subject: [PATCH] wip test --- src/libostree/ostree-repo-static-delta-core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libostree/ostree-repo-static-delta-core.c b/src/libostree/ostree-repo-static-delta-core.c index c419df5629..7052ba72e5 100644 --- a/src/libostree/ostree-repo-static-delta-core.c +++ b/src/libostree/ostree-repo-static-delta-core.c @@ -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);