Detect playback file not found when passed as argument. Example: pfSsh.php replay cvssync RELENG_1

This commit is contained in:
Scott Ullrich 2007-11-23 22:36:17 +00:00
parent 7a291481e9
commit 47643f5b08

View File

@ -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;
}