~sircmpwn/gmni#59: 
gmnisrv: cgi scripts fail when root is relative path

Using a relative path for root works fine for most things, but if I try to run cgi scripts, they always fail.

#...standard ini... above this
[localhost:/cgi-bin]
root=gemini #changing this to /my/working/dir/gemini fixes the behavior
cgi=on

gmni gemini://localhost/cgi-bin/dump.sh

[gmnisrv] execlp: No such file or directory
::1c00:0:500:0 localhost /cgi-bin/dump.sh   6ms     0 20 (cgi)

(also, I think we should be using execl rather than execlp)

Status
REPORTED
Submitter
~earboxer
Assigned to
No-one
Submitted
6 months ago
Updated
6 months ago
Labels
No labels applied.