From b4719c43132a7e8dfd7cafa1ca55f5bdf1c2b2c4 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Tue, 2 Dec 2008 21:23:23 +0100 Subject: BUGFIX: cmd_Logout(...) interpreted eDBadminLogout(...) result wrong --- eurephiadm/eurephiadm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eurephiadm') diff --git a/eurephiadm/eurephiadm.c b/eurephiadm/eurephiadm.c index 39fcab3..cba5a7f 100644 --- a/eurephiadm/eurephiadm.c +++ b/eurephiadm/eurephiadm.c @@ -115,8 +115,8 @@ int cmd_Help(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int a int cmd_Logout(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv) { int rc = 0; rc = eDBadminLogout(ctx, sess); - fprintf(stdout, "%s\n", (rc == 0 ? "Logged out succesfully" : "Logout failed.\n")); - return rc; + fprintf(stdout, "%s\n", (rc == 1 ? "Logged out succesfully" : "Logout failed.")); + return (rc == 0); } int cmd_ShowCfg(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int argc, char **argv) { -- cgit