|
|
remain compatible with slightly older libgit versions for now - stagit-gopher - static git page generator for gopher |
|
|
 |
git clone git://git.codemadness.org/stagit-gopher (git://git.codemadness.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
 |
commit bfb7d7d5cb974479e13ee07f254512a2e909abc1 |
|
|
 |
parent 8c74699abac4d2331eeb70c01c5b0367282a3281 |
|
|
 |
Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) |
application/vnd.lotus-organizer |
|
|
Date: Tue, 24 May 2022 14:07:01 +0200 |
|
|
|
|
|
|
|
remain compatible with slightly older libgit versions for now |
|
|
|
|
|
|
|
Diffstat: |
|
|
|
M stagit-gopher-index.c | 2 ++ |
|
|
|
M stagit-gopher.c | 2 ++ |
|
|
|
|
|
|
|
2 files changed, 4 insertions(+), 0 deletions(-) |
|
|
|
--- |
|
|
 |
diff --git a/stagit-gopher-index.c b/stagit-gopher-index.c |
|
|
|
@@ -253,8 +253,10 @@ main(int argc, char *argv[]) |
|
|
|
git_libgit2_init(); |
|
|
|
for (i = 1; i <= GIT_CONFIG_LEVEL_APP; i++) |
|
|
|
git_libgit2_opts(GIT_OPT_SET_SEARCH_PATH, i, ""); |
|
|
|
+#ifdef GIT_OPT_SET_OWNER_VALIDATION |
|
|
|
/* do not require the git repository to be owned by the current user */ |
|
|
|
git_libgit2_opts(GIT_OPT_SET_OWNER_VALIDATION, 0); |
|
|
|
+#endif |
|
|
|
|
|
|
|
#ifdef __OpenBSD__ |
|
|
|
if (pledge("stdio rpath", NULL) == -1) |
|
|
 |
diff --git a/stagit-gopher.c b/stagit-gopher.c |
|
|
|
@@ -1296,8 +1296,10 @@ main(int argc, char *argv[]) |
|
|
|
git_libgit2_init(); |
|
|
|
for (i = 1; i <= GIT_CONFIG_LEVEL_APP; i++) |
|
|
|
git_libgit2_opts(GIT_OPT_SET_SEARCH_PATH, i, ""); |
|
|
|
+#ifdef GIT_OPT_SET_OWNER_VALIDATION |
|
|
|
/* do not require the git repository to be owned by the current user */ |
|
|
|
git_libgit2_opts(GIT_OPT_SET_OWNER_VALIDATION, 0); |
|
|
|
+#endif |
|
|
|
|
|
|
|
#ifdef __OpenBSD__ |
|
|
|
if (unveil(repodir, "r") == -1) |
|