diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-11-23 22:36:17 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-11-23 22:36:17 +0000 |
commit | 47643f5b08089acd93de873a099d1477d1981c90 (patch) | |
tree | 738aa21f038b2ea799283b494f60abefbe38c5ee /usr | |
parent | 7a291481e9e21b3663c4bb9ac5b926574a780f10 (diff) | |
download | pfsense-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-x | usr/local/sbin/pfSsh.php | 4 |
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; } |