Merge pull request #1120 from phil-davis/patch-5

This commit is contained in:
Renato Botelho 2014-04-24 15:13:16 -03:00
commit 199b658143

View File

@ -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;