dovecot-2.0-sslstream: dsync: Write usage directly to stderr ins...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Feb 13 02:56:32 EET 2010
details: http://hg.dovecot.org/dovecot-2.0-sslstream/rev/a7be031eb51d
changeset: 10356:a7be031eb51d
user: Timo Sirainen <tss at iki.fi>
date: Tue Nov 17 20:32:35 2009 -0500
description:
dsync: Write usage directly to stderr instead of via logging.
diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
src/dsync/dsync.c | 6 ++++--
diffs (26 lines):
diff -r 22ffa2eb68c0 -r a7be031eb51d src/dsync/dsync.c
--- a/src/dsync/dsync.c Tue Nov 17 20:29:48 2009 -0500
+++ b/src/dsync/dsync.c Tue Nov 17 20:32:35 2009 -0500
@@ -9,6 +9,7 @@
#include "dsync-worker.h"
#include "dsync-proxy-server.h"
+#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -56,11 +57,12 @@ static void ATTR_NORETURN
static void ATTR_NORETURN
usage(void)
{
- i_fatal(
+ fprintf(stderr,
"usage: dsync [-b <mailbox>] [-r] [-u <user>] [-v]\n"
" mirror <command to execute remote dsync>\n"
-" convert <source mail_location>"
+" convert <source mail_location>\n"
);
+ exit(1);
}
static void
More information about the dovecot-cvs
mailing list