/[anubis]/anubis/src/authmode.c
ViewVC logotype

Diff of /anubis/src/authmode.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by gray, Sun Nov 30 00:46:44 2003 UTC revision 1.6 by gray, Sun Nov 30 13:38:39 2003 UTC
# Line 335  anubis_get_db_record(char *username, ANU Line 335  anubis_get_db_record(char *username, ANU
335  {  {
336          void *db;          void *db;
337          int rc;          int rc;
338            char *errtext;
339            
340            if (!anubis_dbarg) {
341                    anubis_error(HARD, _("Database not specified"));
342                    return ANUBIS_DB_FAIL;
343            }
344    
345          if (!anubis_dbarg          if (anubis_db_open(anubis_dbarg, anubis_db_rdonly,
346              || anubis_db_open(anubis_dbarg, anubis_db_rdonly,                             &db, &errtext) != ANUBIS_DB_SUCCESS) {
347                                &db) != ANUBIS_DB_SUCCESS)                  anubis_error(HARD,
348                                 _("Cannot open database %s: %s"),
349                                 anubis_dbarg, errtext);
350                  return ANUBIS_DB_FAIL;                  return ANUBIS_DB_FAIL;
351                            }
352            
353          rc = anubis_db_get_record(db, username, usr);          rc = anubis_db_get_record(db, username, usr);
354          switch (rc) {          switch (rc) {
355          case ANUBIS_DB_SUCCESS:          case ANUBIS_DB_SUCCESS:

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26