mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +00:00
crond: fix the case when option -d is disabled
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
e45af7ad17
commit
8c84f7545c
@ -861,7 +861,8 @@ int crond_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
|
|
||||||
/* "-b after -f is ignored", and so on for every pair a-b */
|
/* "-b after -f is ignored", and so on for every pair a-b */
|
||||||
opt_complementary = "f-b:b-f:S-L:L-S" IF_FEATURE_CROND_D(":d-l")
|
opt_complementary = "f-b:b-f:S-L:L-S" IF_FEATURE_CROND_D(":d-l")
|
||||||
":l+:d+"; /* -l and -d have numeric param */
|
/* -l and -d have numeric param */
|
||||||
|
":l+" IF_FEATURE_CROND_D(":d+");
|
||||||
opts = getopt32(argv, "l:L:fbSc:" IF_FEATURE_CROND_D("d:"),
|
opts = getopt32(argv, "l:L:fbSc:" IF_FEATURE_CROND_D("d:"),
|
||||||
&G.log_level, &G.log_filename, &G.crontab_dir_name
|
&G.log_level, &G.log_filename, &G.crontab_dir_name
|
||||||
IF_FEATURE_CROND_D(,&G.log_level));
|
IF_FEATURE_CROND_D(,&G.log_level));
|
||||||
|
Loading…
Reference in New Issue
Block a user