projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
94c77ca
)
Note incorrect ID-private OID for VAL_ADMINSERVICE
author
Mike Taylor
<mike@indexdata.com>
Wed, 23 Jul 2003 12:57:22 +0000
(12:57 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Wed, 23 Jul 2003 12:57:22 +0000
(12:57 +0000)
client/client.c
patch
|
blob
|
history
diff --git
a/client/client.c
b/client/client.c
index
8374707
..
a57f354
100644
(file)
--- a/
client/client.c
+++ b/
client/client.c
@@
-2,7
+2,7
@@
* Copyright (c) 1995-2003, Index Data
* See the file LICENSE for details.
*
* Copyright (c) 1995-2003, Index Data
* See the file LICENSE for details.
*
- * $Id: client.c,v 1.204 2003-07-18 22:41:25 mike Exp $
+ * $Id: client.c,v 1.205 2003-07-23 12:57:22 mike Exp $
*/
#include <stdio.h>
*/
#include <stdio.h>
@@
-590,9
+590,14
@@
int cmd_authentication(const char *arg)
if (r == 1)
{
auth = &au;
if (r == 1)
{
auth = &au;
- au.which = Z_IdAuthentication_open;
- au.u.open = user;
- printf("Authentication set to Open (%s)\n", user);
+ if (!strcmp(user, "-")) {
+ au.which = Z_IdAuthentication_anonymous;
+ printf("Authentication set to Anonymous\n");
+ } else {
+ au.which = Z_IdAuthentication_open;
+ au.u.open = user;
+ printf("Authentication set to Open (%s)\n", user);
+ }
}
if (r == 2)
{
}
if (r == 2)
{