From 86c9fb369153c568bfc62439ad27220d5d0fc247 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Tue, 3 Jan 2012 23:49:09 +0530 Subject: [PATCH] daemon: Fix *-idle-time arguments --exit-idle-time and --scache-idle-time were marked as having an optional argument when the argument is actually mandatory. This causes a crash when using this argument. Thanks to Matthijs Kooijman (blathijs on IRC) for pointing this out. --- src/daemon/cmdline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/daemon/cmdline.c b/src/daemon/cmdline.c index 5ad37f6..9f71783 100644 --- a/src/daemon/cmdline.c +++ b/src/daemon/cmdline.c @@ -85,8 +85,8 @@ static const struct option long_options[] = { {"realtime", 2, 0, ARG_REALTIME}, {"disallow-module-loading", 2, 0, ARG_DISALLOW_MODULE_LOADING}, {"disallow-exit", 2, 0, ARG_DISALLOW_EXIT}, - {"exit-idle-time", 2, 0, ARG_EXIT_IDLE_TIME}, - {"scache-idle-time", 2, 0, ARG_SCACHE_IDLE_TIME}, + {"exit-idle-time", 1, 0, ARG_EXIT_IDLE_TIME}, + {"scache-idle-time", 1, 0, ARG_SCACHE_IDLE_TIME}, {"log-target", 1, 0, ARG_LOG_TARGET}, {"log-meta", 2, 0, ARG_LOG_META}, {"log-time", 2, 0, ARG_LOG_TIME}, -- 2.7.4