# they were specified in, thanks to the 'order' value in the %info
# hash
sub execute_commands {
+ my $oplist = shift;
my $files = shift;
my %info = @_;
delete($info{version});
delete($info{'replace'});
+ ftp_abort("invalid internal operation list")
+ unless $oplist->[0][0] eq 'header';
+ my $header = $oplist->[0][1];
+
my $destdir = "$destfinal/$originfo{directory}";
foreach my $key (sort { $info{$a}{order} <=> $info{$b}{order} } keys %info) {
if ($key eq 'filename') {
if ($oplist) {
# do the work
- execute_commands({directive => $directive_file, upload => $upload_file,
+ execute_commands($oplist,
+ {directive => $directive_file, upload => $upload_file,
sig => $sig_file, directive_only => $directive_only},
%info);