* All rights reserved.
*
* $Log: zebraapi.c,v $
- * Revision 1.39 2000-11-29 14:24:01 adam
+ * Revision 1.40 2000-11-29 15:21:31 adam
+ * Fixed problem with passwd db.
+ *
+ * Revision 1.39 2000/11/29 14:24:01 adam
* Script configure uses yaz pthreads options. Added locking for
* zebra_register_{lock,unlock}.
*
zebra_chdir (zh);
zebra_server_lock_init (zh);
zebra_mutex_cond_init (&zh->session_lock);
+ if (!res_get (zh->res, "passwd"))
+ zh->passwd_db = NULL;
+ else
+ {
+ zh->passwd_db = passwd_db_open ();
+ if (!zh->passwd_db)
+ logf (LOG_WARN|LOG_ERRNO, "passwd_db_open failed");
+ else
+ passwd_db_file (zh->passwd_db, res_get (zh->res, "passwd"));
+ }
+
return zh;
}
zebraRankInstall (zh, rank1_class);
- if (!res_get (zh->res, "passwd"))
- zh->passwd_db = NULL;
- else
- {
- zh->passwd_db = passwd_db_open ();
- if (!zh->passwd_db)
- logf (LOG_WARN|LOG_ERRNO, "passwd_db_open failed");
- else
- passwd_db_file (zh->passwd_db, res_get (zh->res, "passwd"));
- }
-
if (!(zh->records = rec_open (zh->bfs, rw, 0)))
{
logf (LOG_WARN, "rec_open");
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: recgrs.c,v $
- * Revision 1.34 2000-02-25 13:24:49 adam
+ * Revision 1.35 2000-11-29 15:21:31 adam
+ * Fixed problem with passwd db.
+ *
+ * Revision 1.34 2000/02/25 13:24:49 adam
* Fixed bug regarding pointer conversion that showed up on OSF V5.
*
* Revision 1.33 1999/11/30 13:48:04 adam
nmem_destroy (mem);
return 0;
}
+ data1_pr_tree (p->dh, node, stdout);
logf (LOG_DEBUG, "grs_retrieve: size");
if ((dnew = data1_insert_taggeddata(p->dh, node, node,
"size", mem)))