1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

15 Commits

Author SHA1 Message Date
Tim Potter
b541683e44 Fixed some compiler warnings.
(This used to be commit cda0f211b0dd41ae72ef3d65b9476c11c6f72de3)
2001-04-11 01:50:12 +00:00
Jeremy Allison
9c9ce2f613 Added HAVE_STDARG_H to tdbutil.c
Jeremy.
(This used to be commit e404e001990409eacf2e620d2269c2b162fa938b)
2001-04-10 21:07:04 +00:00
Tim Potter
6e9eb6a316 tdb_chainunlock() no longer returns a value.
(This used to be commit 2c9704c3db4014ca43b4b13160b9f53ff5f36e3b)
2000-12-06 02:53:36 +00:00
Jeremy Allison
7e4c4721b4 Changed to sourceforge tdb code. This includes spinlocks (so we now have
a --with-spinlocks option to configure, this does mean the on-disk tdb
format has changed, so 2.2alphaX sites will need to re-create their
tdb's. The upside is no more tdb fragmentation and a +5% on netbench.
Swings and roundabouts....
Jeremy.
(This used to be commit 9dea7b7c257db487f8ced7dad3fce92fba03ea91)
2000-12-06 00:05:15 +00:00
Jeremy Allison
6cc6a4f3f3 rpc_parse/parse_spoolss.c: Updated comment for old version of W2K.
tdb/tdbutil.c: With varargs uint16 is cast to (int).
Jeremy.
(This used to be commit 98764c5df9f363780427a423ead0913f7b2a0905)
2000-11-10 21:24:09 +00:00
Andrew Tridgell
2a9ce69f3b added tdb_lock_bystring() and tdb_unlock_bystring()
(This used to be commit ca443210c84575d39e60c38a7a12d037386d0e38)
2000-10-10 06:43:26 +00:00
Jeremy Allison
49fcb300de Added John Reilly's enumports/addprinter/delprinter scripting code plus the
fix for the Win9x printer drivers.
Changed command names to add "command" string on the end for some consistancy
with the other scripting commands.
Added '%P' option to tdbpack/unpack to store long comment string.
Made port name be "Samba Printer Port" if no enum port script given.
Fixed prs_uint32_pre code to cope with null args.
Jeremy.
(This used to be commit 902ada63799cf27924c72e24e7593a8c9fb5eba9)
2000-07-31 20:41:51 +00:00
Jeremy Allison
6d38ba721c Moved tdb functions that access parse structs into parse_prs.c
to prevent builkd breaking.
Jeremy.
(This used to be commit 6c7adeab0f92844ecefbcb923d0d4763d4c3eaa5)
2000-06-08 01:16:42 +00:00
Jeremy Allison
0164047afb Fixing get/set of security descriptors.
Removed ugly hack for NT printing.
Fixed up tdb parse stuff memory leaks.
Jeremy.
(This used to be commit 8ef41f31c53e14ad057d883810a1cd2301fede2a)
2000-06-07 01:49:23 +00:00
Andrew Tridgell
0090b4ee11 added some debug code to track down pack/unpack problems
(This used to be commit ac9cdab33cddcc5ab00fc21ba79f416f5a9687e7)
2000-06-04 02:29:45 +00:00
Andrew Tridgell
5f7c40f6d0 getting and setting security descriptors on printers now works
this needed some fixes in tdb_unpack(). Tim, you'll need to update
(This used to be commit 9422719ab4c35e4ce3199b62dd632433bf391283)
2000-05-27 09:53:11 +00:00
Andrew Tridgell
9eee36f61d added tdb_pack() and tdb_unpack()
(This used to be commit 6c15495b3087c04890af77149c39e823596bb4dd)
2000-05-24 06:36:58 +00:00
Tim Potter
4cdc54ba24 While we're all making incompatible tdb changes, I changed the implementation
of tdb_{store,get}_int() to store the length of the string key + 1 so the
stored key contains the trailing NULL character.  This allows normal
string library routines to manipulate keys.

Also renamed tdb_get_int() to tdb_fetch_int() to keep the set of verbs
consistent.
(This used to be commit a423c7c5f21dc4046530b85482dee88dcfcbf070)
2000-05-12 06:27:35 +00:00
Tim Potter
d4cd46557b Added tdb_store_by_string() and tdb_fetch_by_string() functions to store
data with null terminated string keys.
(This used to be commit d58146321b6fe50e1cc1a73da80c3d2e8c3412dc)
2000-05-09 06:22:12 +00:00
Andrew Tridgell
c0e1c65053 put tdb utility functions in a separate file
(This used to be commit 77009422a075300e5c07a3e75806a7dac47e2113)
2000-04-29 04:05:38 +00:00