aboutsummaryrefslogtreecommitdiff
path: root/src/wydawca.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wydawca.c')
-rw-r--r--src/wydawca.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/wydawca.c b/src/wydawca.c
index 69fb898..521d796 100644
--- a/src/wydawca.c
+++ b/src/wydawca.c
@@ -307,55 +307,69 @@ collect_uids (int argc, char **argv)
char **x_argv;
extern int reconfigure;
void
wydawca_daemon ()
{
if (!foreground)
{
if (daemon (0, 0))
{
logmsg (LOG_ERR, "%s", strerror (errno));
exit (EX_OSERR);
}
logmsg (LOG_NOTICE, _("daemon launched"));
}
check_pidfile ();
wydawca_listener ();
remove_pidfile ();
}
#include "cmdline.h"
+void
+version_hook (FILE *stream)
+{
+ printf ("Compiled with:");
+#ifdef WITH_LIBWRAP
+ printf (" libwrap");
+#endif
+#ifdef WITH_INOTIFY
+ printf (" inotify");
+#endif
+ putchar ('\n');
+}
+
int
main (int argc, char **argv)
{
struct grecs_node *tree;
const char *p;
program_name = argv[0];
+ print_version_hook = version_hook;
mu_register_all_mailer_formats ();
mu_stdstream_setup (MU_STDSTREAM_RESET_NONE);
config_init ();
x_argv = argv;
parse_options (argc, argv);
argv += optind;
argc -= optind;
p = gpgme_check_version ("1.1.0");
if (!p)
{
logmsg (LOG_CRIT, _("GPGMe version check failed"));
exit (EX_UNAVAILABLE);
}
else if (debug_level > 3)
logmsg (LOG_DEBUG, _("using GPGME version %s"), p);
if (argc)
collect_uids (argc, argv);
if (preprocess_only)
exit (grecs_preproc_run (conffile, grecs_preprocessor) ? EX_CONFIG : 0);

Return to:

Send suggestions and report system problems to the System administrator.