summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r25195: Fix issue with calling pull_uc2_*alloc withJeremy Allison1-0/+8
str_len == 0. We should just return 0 in this case. Jeremy. (This used to be commit 8bb85f3f141f0f45b06d28f004cb2cf18252d4e1)
2007-10-10r25184: Fix some C++ warnings and an uninitialized variableVolker Lendecke2-2/+2
(This used to be commit b64df8a3c504ab7749c21ffb26e4771a9a0a328f)
2007-10-10r25172: Remove commented out code we will never enable.Jeremy Allison1-172/+0
Jeremy. (This used to be commit 6032fbc358c5015b2b6a23e13d978bf41ef9e5f3)
2007-10-10r25171: More pstring removal.Jeremy Allison2-29/+51
Jeremy. (This used to be commit 4748d2639796e8caa67fae44d1cf660d49d82663)
2007-10-10r25170: Remove pstring limits from ms_fnmatch and module load.Jeremy Allison2-37/+46
Jeremy. (This used to be commit 764574ee05ea4f13cdd30c0a0668ffeb81756989)
2007-10-10r25164: Add talloc_asprintf_append_buffer() and the docs for it.Jeremy Allison3-4/+82
Jeremy. (This used to be commit 2243a73d650319208aebbbaf65dfba2a508a7c10)
2007-10-10r25150: don't recursivly call call dump_core()Stefan Metzmacher1-0/+8
as currently seen in 'make test' localy and in the farm metze (This used to be commit f41efe01b5a22889f5b18916df9a2f924263e7f9)
2007-10-10r25138: More pstring elimination. Add a TALLOC_CTX parameterJeremy Allison2-11/+41
to unix_convert(). Jeremy. (This used to be commit 39c211a702e91c34c1a5a689e1b0c4530ea8a1ac)
2007-10-10r25136: When tallocing a string to uppercase remember the terminatingJeremy Allison1-1/+1
'\0' in size calculations. Jeremy. (This used to be commit 54c658867db3b6c602080d60936abab3af26e112)
2007-10-10r25121: Remove pstring limits from much of our string handling function.Jeremy Allison1-54/+174
Still a few left (mainly the substitute ones). Jeremy. (This used to be commit 6552e52979a7c6954faa8b2c9c0f08b3779835c4)
2007-10-10r25120: One more warning.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 9cc70e3ccff9c3b20076572235d9dcbfd23e97e5)
2007-10-10r25117: The mega-patch Jerry was waiting for. Remove all pstrings fromJeremy Allison3-8/+18
the main server code paths. We should now be able to cope with paths up to PATH_MAX length now. Final job will be to add the TALLOC_CTX * parameter to unix_convert to make it explicit (for Volker). Jeremy. (This used to be commit 7f0db75fb0f24873577dcb758a2ecee74fdc4297)
2007-10-10r25116: Fix talloc_asprintf_append to do the right thing withJeremy Allison1-5/+2
truncated strings. Jeremy. (This used to be commit 93c42fd9b52d9135d8c8b52e97cf342c1c5b5010)
2007-10-10r25111: Move to talloced pathnames on most code paths.Jeremy Allison1-1/+15
There are now ony 17 pstrings left in reply.c, and these will be easy to remove (and I'll be doing that shortly). Had to fix an interesting bug in pull_ucs2_base_talloc() when a source string is not null terminated :-). Jeremy. (This used to be commit 0c9a8c4dff10974dbffd2a302ae982896122fcc0)
2007-10-10r25061: Pro-actively shut up Coverity :-)Volker Lendecke1-3/+5
(This used to be commit f2ce4a803cfd04fa993d2d87720b4b6f67fc46db)
2007-10-10r25055: Add file_id_string_tosVolker Lendecke1-18/+4
This removes file_id_string_static and file_id_string_static2 (This used to be commit 638c848c9afe374feb30e34c494f89b2a6c64f7b)
2007-10-10r25040: Add "net sam rights"Volker Lendecke2-1/+39
Not strictly in the SAM, but close enough. This command acts directly on the local tdb, no running smbd required This also changes the root-only check to a warning (This used to be commit 0c5657b5eff60e3c52de8fbb4ce9346d0341854c)
2007-10-10r25025: Remove an unused functionVolker Lendecke1-5/+0
(This used to be commit 858f7b7d786ca352ffebb56b9fda40c636acef74)
2007-10-10r25009: Large patch discussed with Volker. Move unix_convert to a talloc-basedJeremy Allison1-0/+65
interface. More development will come on top of this. Remove the "mangled map" parameter. Jeremy. (This used to be commit dee8beba7a92b8a3f68bbcc59fd0a827f68c7736)
2007-10-10r24993: Apply some constVolker Lendecke1-1/+2
(This used to be commit 613b9fcd18bcc29bf5313e2287b53b8de430d17e)
2007-10-10r24949: Remove some static buffersVolker Lendecke3-62/+42
(This used to be commit df648d47ff3c4e24f439fda839653bda98323100)
2007-10-10r24903: One more tick in #if 0 codeVolker Lendecke1-1/+1
(This used to be commit e0b4fb55e3176785a85d66efece15d0a366a35f1)
2007-10-10r24902: DEBUG might use talloc_tos() itself...Volker Lendecke1-1/+1
(This used to be commit 1b39374a173bf6b40426000d010d092e94afc4d7)
2007-10-10r24877: Don't panic in tdb validation code when the fork or waitpid fails.Michael Adam1-5/+7
Return error instead. Michael (This used to be commit 9b25355dd66519afd548fecbf2da7608b024a35b)
2007-10-10r24848: Make tdb_validate() take an open tdb handle instead of a file name.Michael Adam1-16/+41
A new wrapper tdb_validate_open() takes a filename an opens and closes the tdb before and after calling tdb_validate() respectively. winbindd_validata_cache_nobackup() now dynamically calls one of the above functions depending on whether the cache tdb has already been opened or not. Michael (This used to be commit dc0b08e6590caa4974fd4d9f34f39f261d1f1dee)
2007-10-10r24847: Change standard failure return code of tdb_validate from "-1" to "1".Michael Adam1-2/+2
(This is more safely used with casts from int to uint8, e.g.) Michael (This used to be commit cb3583b39212688a627a29bbddb2e98497714d42)
2007-10-10r24809: Consolidate the use of temporary talloc contexts.Volker Lendecke1-0/+108
This adds the two functions talloc_stackframe() and talloc_tos(). * When a new talloc stackframe is allocated with talloc_stackframe(), then * the TALLOC_CTX returned with talloc_tos() is reset to that new * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse * happens: The previous talloc_tos() is restored. * * This API is designed to be robust in the sense that if someone forgets to * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and * resets the talloc_tos(). The original motivation for this patch was to get rid of the sid_string_static & friends buffers. Explicitly passing talloc context everywhere clutters code too much for my taste, so an implicit talloc_tos() is introduced here. Many of these static buffers are replaced by a single static pointer. The intended use would thus be that low-level functions can rather freely push stuff to talloc_tos, the upper layers clean up by freeing the stackframe. The more of these stackframes are used and correctly freed the more exact the memory cleanup happens. This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and lp_talloc_ctx (did I forget any?) So, never do a tmp_ctx = talloc_init("foo"); anymore, instead, use tmp_ctx = talloc_stackframe() :-) Volker (This used to be commit 6585ea2cb7f417e14540495b9c7380fe9c8c717b)
2007-10-10r24773: Fix a ctdb connection lockupVolker Lendecke3-13/+57
The lockup could happen when packet_read_sync() gets two packets in a row, the first one being an async message, and the second one being the response to a ctdb request. Also add some debug msg to ctdb_conn.c, and cut off the "locking key" messages to only dump 20 hex chars at debug level 10. >10 will dump everything. (This used to be commit 0a55880a240b619810371a19144dd0a75208adfe)
2007-10-10r24759: Comment out the _nonnull calls for 3.2.x, as agreed with tridge.Jeremy Allison1-0/+6
Leaving the commented out code for now, in case I need to re-test some stuff. Jeremy (This used to be commit 343be0464342aac14a9592fd73a71b7589ba34d5)
2007-10-10r24744: Increase length by what we got from recv, not from ioctlVolker Lendecke1-2/+3
(This used to be commit 23c8f4f74bfb761894034ce9375258411c80d74d)
2007-10-10r24743: Fix build warning.Günther Deschner1-1/+1
Guenther (This used to be commit 579fb55b7556dc90b42f77d5fc9e9c31f34974e5)
2007-10-10r24742: Add experimental DsGetDcName() call (will be used by krb5 locator ↵Günther Deschner1-0/+72
for fine grained KDC DNS queries). Guenther (This used to be commit 3263cd680fe429430d789b284464fca72ef45719)
2007-10-10r24738: Fix one more use of pwrite in tdb code in the spirit of r23972 and ↵Michael Adam1-6/+25
r23977. Michael (This used to be commit a3506f291abfb8a9516b79c10c79841a7391651e)
2007-10-10r24733: Add support for storing DATA_BLOBs in gencache.tdb (including ↵Günther Deschner1-0/+157
torturetest). Mimir, please have a look. DATA_BLOBs will now just show up as "DATA_BLOB" values with "net cache list". Guenther (This used to be commit b8ad546d041a2a8cc85c7db8eba4d2d3b97df1a8)
2007-10-10r24627: merge from SAMBA_4_0:Stefan Metzmacher1-2/+12
as TALLOC_ABORT() is defined to abort() by default wrap it into a function so that the function name in the backtrace shows what happens. metze (This used to be commit ddbe971030070ab1b9fc37b8b0ac44a3d9303fe4)
2007-10-10r24618: move printing out the version string and exit()Stefan Metzmacher1-3/+12
into the popt _POST processing. Now 'smbd -V --bla' complains about an unknown option metze (This used to be commit c115de4beac887442a73b4a85367d7b5fded68e6)
2007-10-10r24610: Add a debug message that the workaround has been activated...Michael Adam1-0/+2
(This used to be commit a12f3bf6e93f7a902a1f6274d67f15cc4eeb20bd)
2007-10-10r24609: Fix the fix of r23668 for win2k giving one zero byteMichael Adam1-1/+1
instead of a 2-byte zero character. I can't recall what rode me when I put that "2" there. But now I think I have got it right... :-) Michael (This used to be commit fa010bef11b78ac3bbf0091870ce8cd5a53334af)
2007-10-10r24589: Refactor our vuid code so that we keep the sameJeremy Allison1-1/+1
vuid that was allocated whilst the connection is being constructed and after the connection has been set up. This is what Windows does and at least one client (and HP printer) depends on this behaviour. As it depends on the req struct not yet ported to SAMBA_3_2_0 (Volker, hint hint.... :-) I am not yet adding this to that branch, but will investigate that tomorrow. Jeremy. (This used to be commit a54f2805df92c67e74a6764568eedebe394fd500)
2007-10-10r24547: Fix #4897, patch from David S. Collier-Brown <davecb@spamcop.net> -- ↵Volker Lendecke1-6/+6
Thanks! (This used to be commit 4a90264d173ef5a870f2a44554c3bb9e738e98fb)
2007-10-10r24435: Fix typo.Günther Deschner1-1/+1
Guenther (This used to be commit 8705f890b11e7158b5c77cbd3a6dfae8eb26776e)
2007-10-10r24354: Remove offsetof macroVolker Lendecke1-4/+0
Samba4 seems not to suffer from it (This used to be commit d93b5d50a00286586c931a5876f5933a520b6ce7)
2007-10-10r24341: Make libreplace provide offsetof.Jelmer Vernooij3-4/+5
(This used to be commit 4a5fa715a6af281282092644817599f79806981d)
2007-10-10r24340: Use standard data type uint32_t rather than tdb-specific u32.Jelmer Vernooij8-59/+56
(This used to be commit 26d1430283bd4ae8b8a84f3253e33417d509c1a4)
2007-10-10r24304: patch from Bjoern JAcke <bj@SerNet.DE>:Stefan Metzmacher1-0/+242
attached patches add EA support for Solaris. If no one disagrees, can someone check this in please? metze (This used to be commit 81e5afc363e1f0bdc4768c0f5c696f4152fe5b44)
2007-10-10r24267: Fix the build farmVolker Lendecke1-2/+2
I had only tested with "net getlocalsid". posix_locking_init() calls this with a NULL name... (This used to be commit 3eee1fe28057e2e3da2e9d1506f57f3e35fd37b7)
2007-10-10r24265: Add the tdb_hashsize:<tdbname> parameterVolker Lendecke1-0/+22
This makes it possible to set the default hashsize for any tdb. I would like to remove the "open files database hash size" in favor of this one. I'll check that removal in with the next commit, please complain/revert if it's not ok. Volker (This used to be commit e9bd7a63a8d462b1fc3bab99ff843e25bffd156b)
2007-10-10r24133: Explicitly pass flags2 down to push_string_fnVolker Lendecke1-2/+5
This needs a bit closer review, it also touches the client libs (This used to be commit 824eb26738d64af1798d319d339582cf047521f0)
2007-10-10r24120: add a file_id_create() hook into the VFS layerStefan Metzmacher1-4/+3
it's needed for some cluster filesystems to overload this function. metze (This used to be commit cdaa24e8047399002e4b287a31a8340a665e580f)
2007-10-10r24113: some little fixes to get the correct error messageStefan Metzmacher2-2/+6
when using "clustering = yes" and ctdbd isn't running metze (This used to be commit c5f020ba1fdefe0422dd466b9c68ff67c74ceddd)