diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-02-11 12:30:26 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-02-11 12:30:33 -0200 |
commit | 80d708deb68ac2cfaa9ae8e6dc5a5b8591c1b866 (patch) | |
tree | 1d7a03816e6793eb2c600694c926fd686c585dc7 /etc | |
parent | 443ba8c9e1562765f03a0de2100cdda6f9e0bb1c (diff) | |
download | pfsense-80d708deb68ac2cfaa9ae8e6dc5a5b8591c1b866.zip pfsense-80d708deb68ac2cfaa9ae8e6dc5a5b8591c1b866.tar.gz |
Fix symlink calls adding full link name, it fixes issue reported at https://forum.pfsense.org/index.php/topic,72405.0.html
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index d0a37d2..b15feab 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1459,7 +1459,7 @@ function interface_ppps_configure($interface) { } // mpd5 modem chat script expected in the same directory as the mpd_xxx.conf files if (!file_exists("{$g['varetc_path']}/mpd.script")) - @symlink("/usr/local/sbin/mpd.script", "{$g['varetc_path']}/."); + @symlink("/usr/local/sbin/mpd.script", "{$g['varetc_path']}/mpd.script"); if (is_array($config['ppps']['ppp']) && count($config['ppps']['ppp'])) { foreach ($config['ppps']['ppp'] as $pppid => $ppp) { @@ -1805,7 +1805,7 @@ EOD; /* Generate mpd.conf. If mpd_[interface].conf exists in the conf path, then link to it instead of generating a fresh conf file. */ if (file_exists("{$g['conf_path']}/mpd_{$interface}.conf")) - @symlink("{$g['conf_path']}/mpd_{$interface}.conf", "{$g['varetc_path']}/."); + @symlink("{$g['conf_path']}/mpd_{$interface}.conf", "{$g['varetc_path']}/mpd_{$interface}.conf"); else { $fd = fopen("{$g['varetc_path']}/mpd_{$interface}.conf", "w"); if (!$fd) { |