summaryrefslogtreecommitdiffstats
path: root/etc/sshd
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-09 21:55:41 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-09 21:55:41 +0000
commit0afcd529eab3bbecb665cd614ed1805196e3b403 (patch)
tree5585de7c7a3426eeb0ee8d267d5dfdfab52228d7 /etc/sshd
parentee096757bb941ccf652d415ff251966ef1dd06fc (diff)
downloadpfsense-0afcd529eab3bbecb665cd614ed1805196e3b403.zip
pfsense-0afcd529eab3bbecb665cd614ed1805196e3b403.tar.gz
Operating on argv[0] and [1]
Diffstat (limited to 'etc/sshd')
-rwxr-xr-xetc/sshd2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/sshd b/etc/sshd
index 054b43c..754c1f0 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -32,7 +32,7 @@
$stderr = fopen("php://stderr", "w");
- if($argv[0] == "stop") {
+ if($argv[1] == "stop" || $argv[0] == "stop") {
if(file_exists("/root/.authorized_keys")) {
$ak = return_filename_as_string("/root/.authorized_keys");
$ak = base64_encode($ak);
OpenPOWER on IntegriCloud