HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
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;