X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=client%2Fclient.c;h=53c241b30e1cb4f6443ac46e53ed65a73490276d;hb=3b792849c676d96918850e2f1e0af87a75278501;hp=59c48a06d920bc89cd3e298e37a6ae7b7013530f;hpb=0c4bd81e2e56724de1adbbc753f812328fb20e3c;p=yaz-moved-to-github.git diff --git a/client/client.c b/client/client.c index 59c48a0..53c241b 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: client.c,v 1.351 2007-08-24 13:25:14 adam Exp $ + * $Id: client.c,v 1.352 2007-10-29 09:16:32 adam Exp $ */ /** \file client.c * \brief yaz-client program @@ -844,8 +844,8 @@ int cmd_authentication(const char *arg) au.which = Z_IdAuthentication_idPass; au.u.idPass = &idPass; idPass.groupId = NULL; - idPass.userId = user; - idPass.password = group; + idPass.userId = !strcmp(user, "-") ? 0 : user; + idPass.password = !strcmp(group, "-") ? 0 : group; printf("Authentication set to User (%s), Pass (%s)\n", user, group); } if (r == 3)