From 47643f5b08089acd93de873a099d1477d1981c90 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 23 Nov 2007 22:36:17 +0000 Subject: [PATCH] Detect playback file not found when passed as argument. Example: pfSsh.php replay cvssync RELENG_1 --- usr/local/sbin/pfSsh.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr/local/sbin/pfSsh.php b/usr/local/sbin/pfSsh.php index e900b10227..7af81fee5c 100755 --- a/usr/local/sbin/pfSsh.php +++ b/usr/local/sbin/pfSsh.php @@ -168,6 +168,10 @@ $playback_file_split = array(); $playbackbuffer = ""; if($argv[1]=="playback" or $argv[1]=="run") { + if(!file_exists("/etc/phpshellsessions/{$argv[2]}")) { + echo "Could not locate playback file."; + exit; + } playback_file($argv[2]); exit; }