From 19ff7fc150470d923b7f95fc09316e594f4c3bdc Mon Sep 17 00:00:00 2001 From: Maximilian Gass Date: Mon, 23 May 2011 07:58:40 +0200 Subject: Rename $input to more expressive Conflicts: bin/ssh-forcecommand --- bin/ssh-forcecommand | 6 +++--- 1 file 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 \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__ -- cgit v1.2.3