From: "Paul W. Rankin" <pwr@bydasein.com>
To: Oscar Najera <hi@oscarnajera.com>
Cc: cgit@lists.zx2c4.com
Subject: Re: about-filter in chroot on OpenBSD (httpd + slowcgi)
Date: Sun, 28 Mar 2021 19:05:51 +1000 [thread overview]
Message-ID: <7aea255f48d681ed9d36dca28f5ffa05@bydasein.com> (raw)
In-Reply-To: <87sg4fpulm.fsf@oscarnajera.com>
On 2021-03-28 18:09, Oscar Najera wrote:
> Paths are absolute on. Try
>
> about-filter=/var/www/bin/lowdown
Thanks Oscar, but cgit is running in chroot at /var/www so this path
would become /var/www/var/www/bin/lowdown.
This is now solved. I was making two mistakes; the first is that
about-filter doesn't want an executable to do the conversion, it wants a
the command to pass to do the conversion. The second is that my script
was #!/bin/sh but sh wasn't in the chroot, so I needed to copy the sh
binary into /var/www/bin.
But with some help from the OpenBSD list I was able to make a little
static C program that works:
#include <unistd.h>
int main(void) {
execl("/bin/lowdown", "lowdown", NULL);
return 1;
}
prev parent reply other threads:[~2021-03-28 9:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-28 5:35 Paul W. Rankin
[not found] ` <87sg4fpulm.fsf@oscarnajera.com>
2021-03-28 9:05 ` Paul W. Rankin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7aea255f48d681ed9d36dca28f5ffa05@bydasein.com \
--to=pwr@bydasein.com \
--cc=cgit@lists.zx2c4.com \
--cc=hi@oscarnajera.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).