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);