From 972c826a824930ef84391a3f36d601dc823e3038 Mon Sep 17 00:00:00 2001 From: staffcvs <> Date: Fri, 9 May 2008 12:43:49 +0000 Subject: *** empty log message *** --- apps/sympathy.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/sympathy.c b/apps/sympathy.c index 776ae4f..dd0fc75 100644 --- a/apps/sympathy.c +++ b/apps/sympathy.c @@ -11,6 +11,9 @@ static char rcsid[] = /* * $Log$ + * Revision 1.49 2008/05/09 12:43:49 staffcvs + * *** empty log message *** + * * Revision 1.48 2008/05/09 12:35:57 james * *** empty log message *** * @@ -544,7 +547,7 @@ main (int argc, char *argv[]) memset (oflags, 0, sizeof (oflags)); memset (oargs, 0, sizeof (oargs)); - while ((c = getopt (argc, argv, "I:NCRP:vw:utscr:lKHd:pb:fL:Fk:n:")) != EOF) + while ((c = getopt (argc, argv, "I:NCSRP:vw:utscr:lKHd:pb:fL:Fk:n:")) != EOF) { switch (c) { @@ -554,7 +557,7 @@ main (int argc, char *argv[]) usage (); case 'S': use_syslog++; - openlog ("sympathy", LOG_PID | LOG_CONSOLE, LOG_DAEMON); + openlog ("sympathy", LOG_PID | LOG_CONS, LOG_DAEMON); /*fall through */ default: if ((c >= 'A') && (c <= 'Z')) @@ -723,7 +726,7 @@ main (int argc, char *argv[]) fatal_moan ("-c or -r are incompatible with -p, -d, -K, -b, -f, -R, -P or -L"); - if (oflags['C'] || !oflags['d']) + if (oflags['C'] && !oflags['d']) fatal_moan ("-C requires -d"); -- cgit v1.2.3