From bd05876995bc8493c76ce4a51271f8e8f19bef4d Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 2 Apr 2010 23:51:30 +0200 Subject: [PATCH] Fix bug #1542 File Daemon outputs usage message to stdout instead of stderr --- bacula/src/dird/dird.c | 2 +- bacula/src/filed/filed.c | 5 +++-- bacula/src/stored/stored.c | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bacula/src/dird/dird.c b/bacula/src/dird/dird.c index 493bff07f3..f720d8befd 100644 --- a/bacula/src/dird/dird.c +++ b/bacula/src/dird/dird.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2000-2009 Free Software Foundation Europe e.V. + Copyright (C) 2000-20109 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. diff --git a/bacula/src/filed/filed.c b/bacula/src/filed/filed.c index 9a893f929f..50708d3d48 100644 --- a/bacula/src/filed/filed.c +++ b/bacula/src/filed/filed.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2000-2009 Free Software Foundation Europe e.V. + Copyright (C) 2000-2010 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -71,7 +71,7 @@ static CONFIG *config; static void usage() { - Pmsg3(-1, _( + fprintf(stderr, _( PROG_COPYRIGHT "\nVersion: %s (%s)\n\n" "Usage: bacula-fd [-f -s] [-c config_file] [-d debug_level]\n" @@ -88,6 +88,7 @@ PROG_COPYRIGHT " -v verbose user messages\n" " -? print this message.\n" "\n"), 2000, VERSION, BDATE); + exit(1); } diff --git a/bacula/src/stored/stored.c b/bacula/src/stored/stored.c index 93735c76b4..71f6f9d2a7 100644 --- a/bacula/src/stored/stored.c +++ b/bacula/src/stored/stored.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2000-2009 Free Software Foundation Europe e.V. + Copyright (C) 2000-2010 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -112,6 +112,7 @@ PROG_COPYRIGHT " -v verbose user messages\n" " -? print this message.\n" "\n"), 2000, VERSION, BDATE); + exit(1); } -- 2.39.5