#!/bin/sh

#
# Debian wrapper script (experimental) for access to /var/lib/debian-www/cgi-bin
# Christoph Lameter, November 5, 1996 (Day of mourning for the Nation)

X=$PATH_INFO

export PATH_INFO=`expr $X : '.[^/]*\(/.*\)'`
export EXEC=`expr $X : '\(.[^/]*\)/.*'`

if [ "$PATH_INFO" = "" ]; then
	EXEC=$X
fi

# Uncomment the following line to debug things
#echo "RESULT=$EXEC + $PATH_INFO ARG=$*" >>/var/wn/cgi-bin/xx

exec /var/lib/debian-www/cgi-bin/$EXEC $*
