summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaximilian Gass <mxey@ghosthacking.net>2011-05-23 07:58:40 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-05-23 09:51:35 +0200
commit19ff7fc150470d923b7f95fc09316e594f4c3bdc (patch)
tree79b7b742362f85c6fdd147afad05a911c912de0a
parentdd5723050dfac40dfbe1d01c9d7e785f165d40a4 (diff)
Rename $input to more expressive
Conflicts: bin/ssh-forcecommand
-rwxr-xr-xbin/ssh-forcecommand6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ssh-forcecommand b/bin/ssh-forcecommand
index 36bc9ef..c216658 100755
--- a/bin/ssh-forcecommand
+++ b/bin/ssh-forcecommand
@@ -3,7 +3,7 @@ use strict;
use warnings;
my $conffile = shift or die("Usage: $0 <configfile>\n");
-my $input = $ENV{SSH_ORIGINAL_COMMAND} or die("No command\n");
+my $origcmd = $ENV{SSH_ORIGINAL_COMMAND} or die("No command\n");
my %command;
our $VERSION = '1.0';
@@ -19,11 +19,11 @@ while ( my $line = <$conf> ) {
}
close($conf) or die("Cannot close $conffile: $!\n");
-if ( not $command{$input} ) {
+if ( not $command{$origcmd} ) {
die("Unknown command\n");
}
-exec( $command{$input} );
+exec( $command{$origcmd} );
__END__