HEX
Server: nginx/1.24.0
System: Linux webserver-one 6.8.0-101-generic #101-Ubuntu SMP PREEMPT_DYNAMIC Mon Feb 9 10:15:05 UTC 2026 x86_64
User: www-data (33)
PHP: 8.4.18
Disabled: NONE
Upload Files
File: //usr/share/usermin/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;