aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-09-07 05:56:09 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-09-07 05:56:09 +0200
commit8c84f7545cf08925edb23d94d9f6519b338267c6 (patch)
treecb8162ae56db2cb0ac67f85f4c44b721e13814b4
parente45af7ad17c3f0ecaec1d761aa89cb4fd83afbc2 (diff)
downloadbusybox-w32-8c84f7545cf08925edb23d94d9f6519b338267c6.tar.gz
busybox-w32-8c84f7545cf08925edb23d94d9f6519b338267c6.tar.bz2
busybox-w32-8c84f7545cf08925edb23d94d9f6519b338267c6.zip
crond: fix the case when option -d is disabled
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--miscutils/crond.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c
index 014016fb6..a0b73c774 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -861,7 +861,8 @@ int crond_main(int argc UNUSED_PARAM, char **argv)
861 861
862 /* "-b after -f is ignored", and so on for every pair a-b */ 862 /* "-b after -f is ignored", and so on for every pair a-b */
863 opt_complementary = "f-b:b-f:S-L:L-S" IF_FEATURE_CROND_D(":d-l") 863 opt_complementary = "f-b:b-f:S-L:L-S" IF_FEATURE_CROND_D(":d-l")
864 ":l+:d+"; /* -l and -d have numeric param */ 864 /* -l and -d have numeric param */
865 ":l+" IF_FEATURE_CROND_D(":d+");
865 opts = getopt32(argv, "l:L:fbSc:" IF_FEATURE_CROND_D("d:"), 866 opts = getopt32(argv, "l:L:fbSc:" IF_FEATURE_CROND_D("d:"),
866 &G.log_level, &G.log_filename, &G.crontab_dir_name 867 &G.log_level, &G.log_filename, &G.crontab_dir_name
867 IF_FEATURE_CROND_D(,&G.log_level)); 868 IF_FEATURE_CROND_D(,&G.log_level));