Skip to content

Commit

Permalink
Avoid using reserved function name kill()
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmark committed Dec 10, 2023
1 parent 865c6c4 commit 63889c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd_kill.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

require "vsftpd-lib.pl";

kill();
pkill();
redirect("");
2 changes: 1 addition & 1 deletion vsftpd-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ()
return "<pre>$out</pre>" if ($?);
}

sub kill() {
sub pkill() {
# regex matches the path itself if it contains no / or the last element in a path
$config{'vsftpd_path'} =~ m!^((([^/])+)|(.*/([^/]+)))$!;
my $cmd = $2 . $5; # either one of these contains something
Expand Down

0 comments on commit 63889c0

Please sign in to comment.