diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-05-30 10:18:21 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-05-30 10:18:37 -0300 |
commit | 8490ba0fc6119415a0925ab5b80018ad6709969a (patch) | |
tree | cd187f0b84e9524607f1980ac1d58ed37faaf73f | |
parent | cb4f4ea9060aca2bb78af3abc6fb7d5c4d4a624d (diff) | |
download | pfsense-8490ba0fc6119415a0925ab5b80018ad6709969a.zip pfsense-8490ba0fc6119415a0925ab5b80018ad6709969a.tar.gz |
glob() is already called by unlink_if_exists
-rwxr-xr-x | etc/sshd | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); |