summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-11-23 22:36:17 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-11-23 22:36:17 +0000
commit47643f5b08089acd93de873a099d1477d1981c90 (patch)
tree738aa21f038b2ea799283b494f60abefbe38c5ee /usr
parent7a291481e9e21b3663c4bb9ac5b926574a780f10 (diff)
downloadpfsense-47643f5b08089acd93de873a099d1477d1981c90.zip
pfsense-47643f5b08089acd93de873a099d1477d1981c90.tar.gz
Detect playback file not found when passed as argument. Example: pfSsh.php replay cvssync RELENG_1
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/sbin/pfSsh.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/sbin/pfSsh.php b/usr/local/sbin/pfSsh.php
index e900b10..7af81fe 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;
}
OpenPOWER on IntegriCloud