projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c1af7a
)
https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3118299&group_id=17457
author
Jamie Cameron
<jcameron@webmin.com>
Mon, 6 Jun 2011 19:52:19 +0000
(12:52 -0700)
committer
Jamie Cameron
<jcameron@webmin.com>
Mon, 6 Jun 2011 19:52:19 +0000
(12:52 -0700)
Handle flags to run-parts
cron/cron-lib.pl
patch
|
blob
|
history
diff --git
a/cron/cron-lib.pl
b/cron/cron-lib.pl
index
945bb82
..
d6216c3
100755
(executable)
--- a/
cron/cron-lib.pl
+++ b/
cron/cron-lib.pl
@@
-716,7
+716,7
@@
like /etc/cron.hourly. Returns undef otherwise.
sub is_run_parts
{
local $rp = $config{'run_parts'};
-return $rp && $_[0] =~ /$rp(.*)\s+(
[a-z0-9\.\-\/_]+)(\s*\))?$/i ? $2
: undef;
+return $rp && $_[0] =~ /$rp(.*)\s+(
\-\-\S+\s+)*([a-z0-9\.\-\/_]+)(\s*\))?$/i ? $3
: undef;
}
=head2 can_edit_user(&access, user)