CentOS 6 chroot is never used by Webmin http://www.virtualmin.com/node/20420

This commit is contained in:
Jamie Cameron
2012-07-22 21:46:58 -07:00
parent 79515925a2
commit 17b38929d6

View File

@@ -1442,6 +1442,13 @@ return $out !~ /\[-f\]/ && $out !~ /\[-f\|/ ? $out : undef;
sub get_chroot
{
if (!defined($get_chroot_cache)) {
if ($gconfig{'real_os_type'} eq 'CentOS Linux' &&
$gconfig{'real_os_version'} >= 6 &&
$config{'auto_chroot'} =~ /\/etc\/sysconfig\/named/) {
# Special case hack - on CentOS 6, chroot path in
# /etc/sysconfig/named isn't really used
$config{'auto_chroot'} = undef;
}
if ($config{'auto_chroot'}) {
local $out = &backquote_command(
"$config{'auto_chroot'} 2>/dev/null");