logo

gemini-space

What lives at gemini://hacktivis.me/ git clone https://hacktivis.me/git/gemini-space.git
commit: 5f955fe37eb3bf3de3dea8e4b8a24884e8f3a740
parent e9cf0f8d8b9b60e858f379dbfeb2d061245dfd15
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 21 Feb 2021 17:12:34 +0100

Revert "server.sh: Harden /cgi-bin/ with a chroot"

This reverts commit e9cf0f8d8b9b60e858f379dbfeb2d061245dfd15.

Diffstat:

Mserver.sh5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/server.sh b/server.sh @@ -11,8 +11,6 @@ # - Lastest known version of the specification: v0.14.3, November 29th 2020 export GEMDIR="/srv/gemini" -# Disable GNU-isms in executables -export POSIXLY_CORRECT=1 IFS=#' ' read -r line @@ -37,7 +35,8 @@ then then if [ -x "$path" -a -f "$path" ] then - env -i PATH=/var/empty/ POSIXLY_CORRECT=1 /bin/chroot "${GEMDIR}/" "$query" + cd "${GEMDIR}/" + env -i PATH=/var/empty/ "$query" status="x$?" else status="50"