From ece49f32561b6c77d8c8ac865c82d3bcf2eee2a3 Mon Sep 17 00:00:00 2001 From: mar Date: Fri, 6 Apr 1990 17:01:20 +0000 Subject: [PATCH] don't fail to start if user not found in db --- clients/blanche/blanche.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/clients/blanche/blanche.c b/clients/blanche/blanche.c index 08d44903..f13a18fc 100644 --- a/clients/blanche/blanche.c +++ b/clients/blanche/blanche.c @@ -182,10 +182,14 @@ char **argv; } if (!noauth && (status = mr_auth("blanche"))) { - com_err(whoami, status, "unable to authenticate to Moira"); - com_err(whoami, 0, - " Try the -noauth flag if you don't need authentication"); - exit(2); + if (status == MR_USER_AUTH) + com_err(whoami, status, ""); + else { + com_err(whoami, status, "unable to authenticate to Moira"); + com_err(whoami, 0, + " Try the -noauth flag if you don't need authentication"); + exit(2); + } } /* display list info if requested to */ -- 2.45.2