1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

r8543: merge volker's nt_printing_init() fix from trunk (r8526)

but make sure to write the new version to the ntdrivers.tdb.
(This used to be commit 9e50d696c3)
This commit is contained in:
Gerald Carter 2005-07-18 14:18:39 +00:00 committed by Gerald (Jerry) Carter
parent 235bece8ff
commit ef0e98b757

View File

@ -522,7 +522,7 @@ BOOL nt_printing_init(void)
{
const char *vstring = "INFO/version";
WERROR win_rc;
uint32 vers_id;
int32 vers_id;
if ( tdb_drivers && tdb_printers && tdb_forms )
return True;
@ -557,6 +557,11 @@ BOOL nt_printing_init(void)
/* handle a Samba upgrade */
vers_id = tdb_fetch_int32(tdb_drivers, vstring);
if (vers_id == -1) {
DEBUG(10, ("Fresh database\n"));
tdb_store_int32( tdb_drivers, vstring, NTDRIVERS_DATABASE_VERSION_5 );
vers_id = NTDRIVERS_DATABASE_VERSION_5;
}
if ( vers_id != NTDRIVERS_DATABASE_VERSION_5 ) {