projects
/
gatekeeper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa7ff81
)
Fix prototype on ftp_die in gatekeeper script
author
Jacob Bachmeyer
<jcb@gnu.org>
Thu, 6 Oct 2022 02:05:21 +0000
(21:05 -0500)
committer
Jacob Bachmeyer
<jcb@gnu.org>
Thu, 6 Oct 2022 02:05:21 +0000
(21:05 -0500)
Currently, this prototype has no effect because the entire script has been
compiled before it is seen. Moving ftp_die to near the beginning of the script
will cause the prototype to be checked and the incorrect prototype causes
compilation to fail.
gatekeeper.pl
patch
|
blob
|
blame
|
history
diff --git
a/gatekeeper.pl
b/gatekeeper.pl
index ecd1cb0f3489b4b5dc27133624dbc5db388fabb6..ba4260051ffe206da850820d6a196af527ffa289 100755
(executable)
--- a/
gatekeeper.pl
+++ b/
gatekeeper.pl
@@
-1450,7
+1450,7
@@
sub ftp_warn($) {
warn $_[0];
}
-sub ftp_die($$) {
+sub ftp_die($
;
$) {
my $msg = shift;
my $exitcode = shift;
$exitcode ||= 1;