Try to find cgi-lib.pl in the current directory since the script cannot

find cgi-lib.pl otherwise on www.FreeBSD.org.
This commit is contained in:
Simon L. B. Nielsen 2005-12-04 23:20:42 +00:00
parent 451acb67a8
commit b2b866fde8
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=26521

View file

@ -1,6 +1,6 @@
#!/usr/bin/perl -T
#
# $FreeBSD: www/en/cgi/confirm-code.cgi,v 1.7 2005/12/04 16:36:51 ceri Exp $
# $FreeBSD: www/en/cgi/confirm-code.cgi,v 1.8 2005/12/04 22:25:20 simon Exp $
#
# Copyright (c) 2003 Eric Anderson
# Copyright (c) 2005 Ceri Davies <ceri@FreeBSD.org>
@ -10,7 +10,7 @@ use Fcntl qw(:DEFAULT :flock);
use POSIX qw(strftime);
use strict;
require 'cgi-lib.pl';
require './cgi-lib.pl';
$ENV{"PATH"} = "/bin:/usr/bin";
$ENV{"TMPDIR"} = "/tmp";