chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:12:17 +08:00
commit cf8edb9f21
44281 changed files with 1655134 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
# 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;