set udb_dbname
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Thu, 5 Dec 1991 02:35:48 +0000 (18:35 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Thu, 5 Dec 1991 02:35:48 +0000 (18:35 -0800)
SCCS-vsn: usr.sbin/sendmail/src/udb.c 5.11

usr/src/usr.sbin/sendmail/src/udb.c

index e7ac38c..2f3c7bc 100644 (file)
@@ -8,9 +8,9 @@
 
 #ifndef lint
 #ifdef USERDB
 
 #ifndef lint
 #ifdef USERDB
-static char sccsid [] = "@(#)udb.c     5.10 (Berkeley) %G% (with USERDB)";
+static char sccsid [] = "@(#)udb.c     5.11 (Berkeley) %G% (with USERDB)";
 #else
 #else
-static char sccsid [] = "@(#)udb.c     5.10 (Berkeley) %G% (without USERDB)";
+static char sccsid [] = "@(#)udb.c     5.11 (Berkeley) %G% (without USERDB)";
 #endif
 #endif
 
 #endif
 #endif
 
@@ -338,6 +338,7 @@ _udbx_init()
                        break;
 
                  case '/':     /* look up remote name */
                        break;
 
                  case '/':     /* look up remote name */
+                       up->udb_dbname = spec;
                        up->udb_dbp = dbopen(spec, O_RDONLY, 0644, DB_BTREE, NULL);
                        if (up->udb_dbp == NULL)
                                break;
                        up->udb_dbp = dbopen(spec, O_RDONLY, 0644, DB_BTREE, NULL);
                        if (up->udb_dbp == NULL)
                                break;