iremain compatible with slightly older libgit versions for now - stagit-gemini - Stagit for gemini protocol Openbsd Err thinkerwim.openbsd.amsterdam 70 hgit clone git://thinkerwim.org/stagit-gemini.git URL:git://thinkerwim.org/stagit-gemini.git thinkerwim.org 70 1Log /git/stagit-gemini/log.gph thinkerwim.org 70 1Files /git/stagit-gemini/files.gph thinkerwim.org 70 1Refs /git/stagit-gemini/refs.gph thinkerwim.org 70 1README /git/stagit-gemini/file/README.gph thinkerwim.org 70 1LICENSE /git/stagit-gemini/file/LICENSE.gph thinkerwim.org 70 i--- Err thinkerwim.openbsd.amsterdam 70 1commit bfb7d7d5cb974479e13ee07f254512a2e909abc1 /git/stagit-gemini/commit/bfb7d7d5cb974479e13ee07f254512a2e909abc1.gph thinkerwim.org 70 1parent 8c74699abac4d2331eeb70c01c5b0367282a3281 /git/stagit-gemini/commit/8c74699abac4d2331eeb70c01c5b0367282a3281.gph thinkerwim.org 70 hAuthor: Hiltjo Posthuma URL:mailto:hiltjo@codemadness.org thinkerwim.org 70 iDate: Tue, 24 May 2022 14:07:01 +0200 Err thinkerwim.openbsd.amsterdam 70 i Err thinkerwim.openbsd.amsterdam 70 iremain compatible with slightly older libgit versions for now Err thinkerwim.openbsd.amsterdam 70 i Err thinkerwim.openbsd.amsterdam 70 iDiffstat: Err thinkerwim.openbsd.amsterdam 70 i M stagit-gopher-index.c | 2 ++ Err thinkerwim.openbsd.amsterdam 70 i M stagit-gopher.c | 2 ++ Err thinkerwim.openbsd.amsterdam 70 i Err thinkerwim.openbsd.amsterdam 70 i2 files changed, 4 insertions(+), 0 deletions(-) Err thinkerwim.openbsd.amsterdam 70 i--- Err thinkerwim.openbsd.amsterdam 70 1diff --git a/stagit-gopher-index.c b/stagit-gopher-index.c /git/stagit-gemini/file/stagit-gopher-index.c.gph thinkerwim.org 70 i@@ -253,8 +253,10 @@ main(int argc, char *argv[]) Err thinkerwim.openbsd.amsterdam 70 i git_libgit2_init(); Err thinkerwim.openbsd.amsterdam 70 i for (i = 1; i <= GIT_CONFIG_LEVEL_APP; i++) Err thinkerwim.openbsd.amsterdam 70 i git_libgit2_opts(GIT_OPT_SET_SEARCH_PATH, i, ""); Err thinkerwim.openbsd.amsterdam 70 i+#ifdef GIT_OPT_SET_OWNER_VALIDATION Err thinkerwim.openbsd.amsterdam 70 i /* do not require the git repository to be owned by the current user */ Err thinkerwim.openbsd.amsterdam 70 i git_libgit2_opts(GIT_OPT_SET_OWNER_VALIDATION, 0); Err thinkerwim.openbsd.amsterdam 70 i+#endif Err thinkerwim.openbsd.amsterdam 70 i Err thinkerwim.openbsd.amsterdam 70 i #ifdef __OpenBSD__ Err thinkerwim.openbsd.amsterdam 70 i if (pledge("stdio rpath", NULL) == -1) Err thinkerwim.openbsd.amsterdam 70 1diff --git a/stagit-gopher.c b/stagit-gopher.c /git/stagit-gemini/file/stagit-gopher.c.gph thinkerwim.org 70 i@@ -1296,8 +1296,10 @@ main(int argc, char *argv[]) Err thinkerwim.openbsd.amsterdam 70 i git_libgit2_init(); Err thinkerwim.openbsd.amsterdam 70 i for (i = 1; i <= GIT_CONFIG_LEVEL_APP; i++) Err thinkerwim.openbsd.amsterdam 70 i git_libgit2_opts(GIT_OPT_SET_SEARCH_PATH, i, ""); Err thinkerwim.openbsd.amsterdam 70 i+#ifdef GIT_OPT_SET_OWNER_VALIDATION Err thinkerwim.openbsd.amsterdam 70 i /* do not require the git repository to be owned by the current user */ Err thinkerwim.openbsd.amsterdam 70 i git_libgit2_opts(GIT_OPT_SET_OWNER_VALIDATION, 0); Err thinkerwim.openbsd.amsterdam 70 i+#endif Err thinkerwim.openbsd.amsterdam 70 i Err thinkerwim.openbsd.amsterdam 70 i #ifdef __OpenBSD__ Err thinkerwim.openbsd.amsterdam 70 i if (unveil(repodir, "r") == -1) Err thinkerwim.openbsd.amsterdam 70 .