Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sdpd actually exit on errors



details:   https://anonhg.NetBSD.org/src/rev/edd137f18e87
branches:  trunk
changeset: 747053:edd137f18e87
user:      plunky <plunky%NetBSD.org@localhost>
date:      Sun Aug 30 19:24:40 2009 +0000

description:
actually exit on errors

diffstat:

 usr.sbin/sdpd/main.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 9750374ec3f9 -r edd137f18e87 usr.sbin/sdpd/main.c
--- a/usr.sbin/sdpd/main.c      Sun Aug 30 18:35:53 2009 +0000
+++ b/usr.sbin/sdpd/main.c      Sun Aug 30 19:24:40 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.6 2009/08/13 17:50:41 drochner Exp $        */
+/*     $NetBSD: main.c,v 1.7 2009/08/30 19:24:40 plunky Exp $  */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
   Copyright (c) 2006 Itronix, Inc.\
   Copyright (c) 2004 Maksim Yevmenkin m_evmenkin%yahoo.com@localhost.\
   All rights reserved.");
-__RCSID("$NetBSD: main.c,v 1.6 2009/08/13 17:50:41 drochner Exp $");
+__RCSID("$NetBSD: main.c,v 1.7 2009/08/30 19:24:40 plunky Exp $");
 
 #include <errno.h>
 #include <grp.h>
@@ -131,10 +131,10 @@
        }
 
        /* Initialize server */
-       if (server_init(&server, control, sgroup) < 0)
+       if (!server_init(&server, control, sgroup))
                exit(EXIT_FAILURE);
 
-       if ((user != NULL || group != NULL) && drop_root(user, group) < 0)
+       if ((user != NULL || group != NULL) && !drop_root(user, group))
                exit(EXIT_FAILURE);
 
        for (done = 0; !done; ) {



Home | Main Index | Thread Index | Old Index