mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
CentOS 6 chroot is never used by Webmin http://www.virtualmin.com/node/20420
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user