Changeset 797 for trunk/dns.cgi


Ignore:
Timestamp:
11/03/20 15:38:37 (4 years ago)
Author:
Kris Deugau
Message:

/trunk

Clean up a lingering nuisance with Perl's default include path; all scripts
should now run correctly no matter what the caller's current directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r788 r797  
    33##
    44# $Id$
    5 # Copyright 2008-2019 Kris Deugau <kdeugau@deepnet.cx>
     5# Copyright 2008-2020 Kris Deugau <kdeugau@deepnet.cx>
    66#
    77#    This program is free software: you can redistribute it and/or modify
     
    4141#die "argh! \@INC got tainted!" if is_tainted(@INC);
    4242
    43 # don't remove!  required for GNU/FHS-ish install from tarball
    44 use lib '.';    ##uselib##
     43# push "the directory the script is in" into @INC
     44use FindBin;
     45use lib "$FindBin::RealBin/";
    4546
    4647use DNSDB;
Note: See TracChangeset for help on using the changeset viewer.