summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-05-30 10:18:21 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-05-30 10:18:37 -0300
commit8490ba0fc6119415a0925ab5b80018ad6709969a (patch)
treecd187f0b84e9524607f1980ac1d58ed37faaf73f
parentcb4f4ea9060aca2bb78af3abc6fb7d5c4d4a624d (diff)
downloadpfsense-8490ba0fc6119415a0925ab5b80018ad6709969a.zip
pfsense-8490ba0fc6119415a0925ab5b80018ad6709969a.tar.gz
glob() is already called by unlink_if_exists
-rwxr-xr-xetc/sshd4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/sshd b/etc/sshd
index 9cea518..89ffba0 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -73,7 +73,7 @@
*/
foreach($keys as $f2c) {
if (file_exists("/etc/ssh/{$f2c}") && filesize("/etc/ssh/{$f2c}") == 0) {
- unlink_if_exists(glob('/etc/ssh/ssh_host*'));
+ unlink_if_exists('/etc/ssh/ssh_host*');
break;
}
}
@@ -164,7 +164,7 @@
if ($generate_keys) {
/* remove previous keys and regen later */
file_notice("SSH", "{$g['product_name']} has started creating your SSH keys. SSH Startup will be delayed. Please note that reloading the filter rules and changes will be delayed until this operation is completed.", "SSH KeyGen", "");
- unlink_if_exists(glob('/etc/ssh/ssh_host_*'));
+ unlink_if_exists('/etc/ssh/ssh_host_*');
mark_subsystem_dirty('sshdkeys');
echo " Generating Keys:\n";
$_gb = exec("/usr/bin/nice -n20 /usr/bin/ssh-keygen -t rsa1 -N '' -f $sshConfigDir/ssh_host_key");
OpenPOWER on IntegriCloud