From 5dc2741ad46034876b058d82e0ecc2ff3cefa2c1 Mon Sep 17 00:00:00 2001 From: Gerrit Renker Date: Sat, 24 Jan 2009 23:37:04 +0100 Subject: [PATCH] Build problem when no audiod.conf exists This avoids stopping the build process and allows users to read the detailed help before getting the error message about a missing audiod.conf file - fixed by parsing after testing for the help text. --- audiod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audiod.c b/audiod.c index a92c4e3b..60d2612c 100644 --- a/audiod.c +++ b/audiod.c @@ -1127,9 +1127,9 @@ int main(int argc, char *argv[]) audiod_cmdline_parser_ext(argc, argv, &conf, ¶ms); HANDLE_VERSION_FLAG("audiod", conf); drop_privileges_or_die(conf.user_arg, conf.group_arg); - parse_config_or_die(); if (conf.help_given || conf.detailed_help_given) print_help_and_die(); + parse_config_or_die(); daemon_set_flag(DF_LOG_TIME); daemon_set_flag(DF_LOG_HOSTNAME); daemon_set_flag(DF_LOG_LL); -- 2.39.5