summaryrefslogtreecommitdiff
path: root/source3/lib/tdb_validate.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: Remove sys_waitpidVolker Lendecke2016-02-231-1/+1
| | | | | | | We have waitpid in libreplace Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* TDB2: make SAMBA use tdb1 again for the moment.Rusty Russell2012-06-191-4/+0
| | | | | | | Otherwise the following surgery will break the SAMBA build and testsuite. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/util: Remove obsolete sys_getpid() and sys_fork().Jelmer Vernooij2012-03-241-1/+1
| | | | | | | | | The performance of these is minimal (these days) and they can return invalid results when used as part of applications that do not use sys_fork(). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 24 21:55:41 CET 2012 on sn-devel-104
* tdb_compat: Higher level API fixes.Rusty Russell2011-06-201-1/+1
| | | | | | | | | | | | My previous patches fixed up all direct TDB callers, but there are a few utility functions and the db_context functions which are still using the old -1 / 0 return codes. It's clearer to fix up all the callers of these too, so everywhere is consistent: non-zero means an error. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_validate: TDB2 support for tdb_validate_child and tdb_backup.Rusty Russell2011-06-201-2/+10
| | | | | | | We don't expose freelist or hash size for TDB2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_traverse/tdb_traverse_read: check returns for negative, not -1.Rusty Russell2011-06-201-1/+1
| | | | | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for < 0 instead of == -1. Also, there's no tdb_traverse_read in TDB2: we don't try to make traverse reliable any more, so there are no write locks anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3: only include tdb headers where needed.Günther Deschner2011-05-061-0/+1
| | | | Guenther
* s3-includes: only include system/filesys.h when needed.Günther Deschner2011-03-301-1/+2
| | | | Guenther
* Fix several places where talloc_asprintf returns were unchecked.Jeremy Allison2010-07-271-0/+13
| | | | Jeremy.
* s3-tdb: Added missing out of memory check in rename_file_with_suffix().Andreas Schneider2010-06-161-0/+4
|
* s3: Open winbindd_cache.tdb with read/write access.Bo Yang2010-03-211-1/+1
| | | | | | | | Open winbindd_cache.tdb with read/write access when validate the cache, otherwise, validation fails to get lock in tdb_check. It results in validation failure even the cache is good. Signed-off-by: Bo Yang <boyang@samba.org>
* s3: let tdb_validate_child() use tdb_check()Stefan Metzmacher2009-12-071-0/+11
| | | | metze
* More warning fixes for Solaris.Jeremy Allison2009-02-231-2/+3
| | | | Jeremy.
* Fix the build on "opi"Volker Lendecke2009-01-291-1/+1
| | | | It did not like to include "includes.h" twice
* s3:tdb_validate: clean up leading tabs/spaces and trailing spaces.Michael Adam2009-01-281-28/+28
| | | | Michael
* s3: separate tdb validation code out into its own source fileMichael Adam2009-01-281-0/+502
So this gets now linked only into its single user: winbindd (needed by winbindd_cache.c) Michael