diff options
Diffstat (limited to 'source/lib/account_pol.c')
-rw-r--r-- | source/lib/account_pol.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/lib/account_pol.c b/source/lib/account_pol.c index 8d5b963da28..c8507f722d1 100644 --- a/source/lib/account_pol.c +++ b/source/lib/account_pol.c @@ -30,11 +30,10 @@ static TDB_CONTEXT *tdb; /* used for driver files */ BOOL init_account_policy(void) { - static pid_t local_pid; const char *vstring = "INFO/version"; uint32 version; - if (tdb && local_pid == sys_getpid()) + if (tdb) return True; tdb = tdb_open_log(lock_path("account_policy.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600); if (!tdb) { @@ -42,8 +41,6 @@ BOOL init_account_policy(void) return False; } - local_pid = sys_getpid(); - /* handle a Samba upgrade */ tdb_lock_bystring(tdb, vstring,0); if (!tdb_fetch_uint32(tdb, vstring, &version) || version != DATABASE_VERSION) { |