mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Deal with comment at end of run-parts command:
This commit is contained in:
@@ -716,8 +716,10 @@ like /etc/cron.hourly. Returns undef otherwise.
|
||||
=cut
|
||||
sub is_run_parts
|
||||
{
|
||||
local ($cmd) = @_;
|
||||
local $rp = $config{'run_parts'};
|
||||
return $rp && $_[0] =~ /$rp(.*)\s+(\-\-\S+\s+)*([a-z0-9\.\-\/_]+)(\s*\))?$/i ? $3 : undef;
|
||||
$cmd =~ s/\s*#.*$//;
|
||||
return $rp && $cmd =~ /$rp(.*)\s+(\-\-\S+\s+)*([a-z0-9\.\-\/_]+)(\s*\))?$/i ? $3 : undef;
|
||||
}
|
||||
|
||||
=head2 can_edit_user(&access, user)
|
||||
|
||||
Reference in New Issue
Block a user