diff options
author | Gerald Carter <jerry@samba.org> | 2005-06-17 15:53:01 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:57:19 -0500 |
commit | fee4b03e02af795a55ba0b955b9e6b07856d05dd (patch) | |
tree | aac6aadaa70cb2df68622438e836690e3e9af5c7 /source3/printing | |
parent | 2129d3c711a109b47c3c1596a6a639520d2f72d2 (diff) | |
download | samba-fee4b03e02af795a55ba0b955b9e6b07856d05dd.tar.gz samba-fee4b03e02af795a55ba0b955b9e6b07856d05dd.tar.bz2 samba-fee4b03e02af795a55ba0b955b9e6b07856d05dd.zip |
r7692: start versioning the registry.tdb file since it can be modified now
(This used to be commit a091b37d59d1e0228a9c8d4bd2a31e9bbaafde99)
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 75473c39f2..2146448ae3 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -412,12 +412,11 @@ static BOOL upgrade_to_version_4(void) BOOL nt_printing_init(void) { - static pid_t local_pid; const char *vstring = "INFO/version"; WERROR win_rc; uint32 vers_id; - if (tdb_drivers && tdb_printers && tdb_forms && local_pid == sys_getpid()) + if ( tdb_drivers && tdb_printers && tdb_forms ) return True; if (tdb_drivers) @@ -447,8 +446,6 @@ BOOL nt_printing_init(void) return False; } - local_pid = sys_getpid(); - /* handle a Samba upgrade */ tdb_lock_bystring(tdb_drivers, vstring, 0); |