diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ssh-forcecommand | 6 |
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__ |