biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / networking / nikto / nix-wrapper-fix.patch
blobbc05d774577e7b7bbdb5c33830b0b74b8c2179d8
1 diff --git a/program/nikto.pl b/program/nikto.pl
2 index 2cb07f9..323e666 100755
3 --- a/program/nikto.pl
4 +++ b/program/nikto.pl
5 @@ -243,7 +243,7 @@ sub config_init {
6 # Guess Nikto current directory
7 my $NIKTODIR = abs_path($0);
8 chomp($NIKTODIR);
9 - $NIKTODIR =~ s#[\\/]nikto.pl$##;
10 + $NIKTODIR =~ s#[\\/]bin[\\/]\.nikto-wrapped$##;
12 # Guess user's home directory -- to support Windows
13 foreach my $var (split(/ /, "HOME USERPROFILE")) {
14 @@ -251,10 +251,10 @@ sub config_init {
17 # Read the conf files in order (previous values are over-written with each, if multiple found)
18 - push(@CF, "$NIKTODIR/nikto.conf.default");
19 + push(@CF,"$NIKTODIR/etc/nikto.conf.default");
20 push(@CF, "/etc/nikto.conf");
21 push(@CF, "$home/nikto.conf");
22 - push(@CF, "$NIKTODIR/nikto.conf");
23 + push(@CF,"$NIKTODIR/etc/nikto.conf");
24 push(@CF, "nikto.conf");
25 push(@CF, "$VARIABLES{'configfile'}");