summaryrefslogtreecommitdiffstats
path: root/etc/sshd
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2011-03-22 01:28:23 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2011-03-22 01:28:23 -0600
commit548be1fd6697ab115cbb29d61bc5507744488094 (patch)
tree86482a6e815a4fa6f7a2f347001feddee82d2d65 /etc/sshd
parentfc2c320e2cddb09764f5fb34b5043452654520be (diff)
downloadpfsense-548be1fd6697ab115cbb29d61bc5507744488094.zip
pfsense-548be1fd6697ab115cbb29d61bc5507744488094.tar.gz
Workaround for conf_mount_rw/ro during boot to only allow it to change at the start and end. Fixes #1279
Diffstat (limited to 'etc/sshd')
-rwxr-xr-xetc/sshd6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/sshd b/etc/sshd
index 28c8e55..67fbe00 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -42,7 +42,7 @@
exit;
}
- conf_mount_rw();
+ conf_mount_rw(true);
function file_size($file) {
$size = filesize($file);
@@ -138,7 +138,7 @@
/* are we already running? if so exit */
if(is_subsystem_dirty('sshdkeys')) {
- conf_mount_ro();
+ conf_mount_ro(true);
exit;
}
@@ -185,6 +185,6 @@
exec("mkdir /conf/sshd");
exec("/bin/cp -p /etc/ssh/ssh_host* /conf/sshd");
}
- conf_mount_ro();
+ conf_mount_ro(true);
?>
OpenPOWER on IntegriCloud