Skip to content

Commit 63889c0

Browse files
committed
Avoid using reserved function name kill()
1 parent 865c6c4 commit 63889c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd_kill.cgi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
require "vsftpd-lib.pl";
44

5-
kill();
5+
pkill();
66
redirect("");

vsftpd-lib.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ()
3737
return "<pre>$out</pre>" if ($?);
3838
}
3939

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

0 commit comments

Comments
 (0)