HEX
Server: Apache
System: Linux eisbus 6.8.12-9-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-9 (2025-03-16T19:18Z) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //usr/share/webmin/shell/shell-lib.pl
# shell-lib.pl

BEGIN { push(@INC, ".."); };
use WebminCore;
&init_config();

sub get_chroot
{
if (&get_product_name() eq 'webmin') {
	# From Webmin ACL
	return $access{'chroot'} eq '/' ? '' : $access{'chroot'};
	}
else {
	# From Usermin home dir
	my @uinfo = getpwnam($remote_user);
	return $uinfo[7] =~ /^(.*)\/\.\// ? $1 : '';
	}
}

1;