Hi all,
I'm try to learning FreeBSD and PHP by analysing the M0n0wall code.
And during the reading of the file "/etc/inc/system.inc" If found some
strange thing:
- The function system_timezone_configure() use this line:
exec("/usr/bin/tar xzfO /usr/share/zoneinfo.tgz " .
escapeshellarg($timezone) . " > /etc/localtime");
- The Function system_reboot() use this line:
mwexec("nohup /etc/rc.reboot > /dev/null 2>&1 &");
Why this functions don't use the variable $g['etc_path'] in the place
of the fixed /etc/ ?
Regards
Olivier |