mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Merge pull request #1120 from phil-davis/patch-5
This commit is contained in:
commit
199b658143
@ -49,6 +49,7 @@ define("RCFILEPREFIX", "/usr/local/etc/rc.d/");
|
||||
function write_rcfile($params) {
|
||||
global $g;
|
||||
|
||||
safe_mkdir(RCFILEPREFIX);
|
||||
$rcfile_fullname = RCFILEPREFIX . $params['file'];
|
||||
if (!file_exists($rcfile_fullname) && !is_link($rcfile_fullname) && !touch($rcfile_fullname))
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user