summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2007-12-16get rid of doschar_table[]Volker Lendecke1-54/+4
If I'm not completely blind, then check_dos_char is *only* used in the case when we can't mmap() valid.dat. To me this looks as if we initialize the 65536 bits in doschar_table[] with check_dos_char_slowly, use it once to initialize valid_table[] and *never* use them again. I think there's no point in keeping these 8k of modified memory around for an unlikely case (no "valid.dat") and even that only to use it exactly once. (This used to be commit 0bfea7259e4091c6d914528a0e65fc10d8a56fb8)
2007-12-16Tiny fixes to init_valid_table()Volker Lendecke1-2/+2
(This used to be commit a8948e0727b100945ab730d4d144ccbe219bbc94)
2007-12-16Make init_doschar_table() staticVolker Lendecke2-2/+3
It's only called directly before init_valid_table() anyway, so move it there. (This used to be commit b6d1d2428866712a550a354732e2386b4f87b67b)
2007-12-16Make check_dos_char staticVolker Lendecke1-1/+1
It's only called in t_doschar, a pretty bogus test program that is not compiled by default (This used to be commit 99c59e809ef3c5abcdfb796d50be7c40f7033787)
2007-12-16Remove a static fstringVolker Lendecke1-12/+20
(This used to be commit a9c62c57db9e580640d0265b08b3178496de76a8)
2007-12-15Cope with valgrind > 3.2.x.Jeremy Allison1-0/+4
Jeremy. (This used to be commit e799eb8da6f5e7a2173ba6b8fb040430fd1c6f34)
2007-12-15s/sid_to_string/sid_to_fstring/Volker Lendecke5-8/+8
least surprise for callers (This used to be commit eb523ba77697346a365589101aac379febecd546)
2007-12-15Use dom_sid_string for sid_string_tallocVolker Lendecke1-29/+12
Remove some code duplication, but introduce one more dependency on librpc/ndr. Easily turned around so that librpc/ndr depends on lib/util_sid if necessary (This used to be commit 3a0b1b2060facd5f1ac1461b23dd86c75cdd9458)
2007-12-15sid_string_static is no more :-)Volker Lendecke1-11/+8
We now have four ways to do sid_to_string: sid_to_string: Convert it into an existing fstring, when you have one sid_string_talloc: The obvious thing sid_string_tos: For the lazy, use only with care sid_string_dbg: The one to use in DEBUG statements (This used to be commit 7b8276aaa48852270c6b70b081c3f28e316a7a2c)
2007-12-15Replace sid_string_static with sid_to_stringVolker Lendecke2-5/+6
This adds 28 fstrings on the stack, but I think an fstring on the stack is still far better than a static one. (This used to be commit c7c885078be8fd3024c186044ac28275d7609679)
2007-12-15Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke5-36/+30
(This used to be commit bb35e794ec129805e874ceba882bcc1e84791a09)
2007-12-15Add sid_string_dbgVolker Lendecke1-0/+5
This makes use of the just added debug_ctx and will kill many sid_string_static() calls (This used to be commit 3e4148c280efe154c3f8d552731c8b29d6977507)
2007-12-15Add debug_ctx according to an idea by TridgeVolker Lendecke1-0/+14
Sorry, Jeremy, I think for debug messages this is just the right way to do it. (This used to be commit 6312016e2727c2b5b1a4964a98cfb9585d77cc8c)
2007-12-15add sid_string_tallocVolker Lendecke1-2/+10
(This used to be commit 9e3ef0923d71cc06b8445be2625ebd8dfed1b42d)
2007-12-14add POPT_COMMON_CONFIGFILE which only provides --configfile (not -s)Stefan Metzmacher1-0/+6
metze (This used to be commit af3392cc20942158ac9e0a533799c5904ff23347)
2007-12-14debug: fix crash bug when DEBUG() is used before setup_logging()Stefan Metzmacher1-0/+4
this was introduced by the pstring removal (1ea3ac80146b83c2522b69e7747c823366a2b47d) metze (This used to be commit a412e6c7c676a054acd9db371221a50078cfe1d9)
2007-12-12Add split_domain_user() (not to mix with winbind variants).Günther Deschner1-0/+24
Guenther (This used to be commit bd5308e5f63e4f692761557d0ecdee7226b66a15)
2007-12-11Add patches for bug #4866 from jiri sasek - Sun Microsystems - Prague Czech ↵Jeremy Allison2-0/+14
Republic <Jiri.Sasek@Sun.COM> - slightly modified - Jiri please check ! to allow Solaris to get passwords > 8 chars. Jeremy. (This used to be commit 657bf8c3479d6192f269e3daef1517e77a9fa9cb)
2007-12-10Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison5-24/+24
them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy. (This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
2007-12-10dbwrap_rbtVolker Lendecke1-0/+303
This is meant as a replacement for the internal tdb. To me it seems a bit silly that for in-memory structures we do our own memory management. With this rbt based approach we can make use of the system-supplied malloc. (This used to be commit 54e5d4404619443caed32e2acff8921cdbff9ed1)
2007-12-10Make the Linux rbtrees compile within SambaVolker Lendecke1-16/+41
(This used to be commit c871fd802f3c0c5ef1f63b2d01a636c885f22b23)
2007-12-10Add rbtree.[ch] from the Linux kernelVolker Lendecke1-0/+397
These are copies taken from 94545baded0bfbabdc30a3a4cb48b3db479dd6ef from Linus' kernel tree (This used to be commit 8a3289f913fc0432211b0e9937da1d71d4e18893)
2007-12-10Add db_tdb_fetchVolker Lendecke1-0/+27
(This used to be commit efa8764c21edfbd09f535900ba37359d72903bf8)
2007-12-10Add dbwrap bystring service routinesVolker Lendecke1-0/+42
(This used to be commit 1e214b536b0628db299d701839e62a4ac52727c9)
2007-12-09Many systems don't have sa_len as part of struct sockaddr.Jeremy Allison1-1/+1
Revert 5c347cb46d85d04bbba7c99dca7ff9628f977d84 "Choose a better default for sockaddr length.". Jeremy. (This used to be commit 677ac6adc38b0747f825ee597e0502277a8f74b1)
2007-12-09Choose a better default for sockaddr length.James Peach1-1/+1
(This used to be commit 5c347cb46d85d04bbba7c99dca7ff9628f977d84)
2007-12-09Fix connect(2) callers to use correct sockaddr size.James Peach4-7/+26
Some systems (eg Mac OSX 10.5) require the length passed to match the socket address family. This introduces sys_connect() that does the right thing, and replaces all uses oc connect(2) with sys_connect(). Note that there are some LGPL callers that still call connect(2) directly. (This used to be commit e1bfdc17c49da582cdf907e260301ab1946b2ed3)
2007-12-07Remove next_token - all uses must now be next_token_talloc.Jeremy Allison3-98/+22
No more temptations to use static length strings. Jeremy. (This used to be commit ec003f39369910dee852b7cafb883ddaa321c2de)
2007-12-07We don't need P_GSTRING or P_UGSTRING anymore.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 78dc75600099b5b3b5a8ecffec747a227ff51d70)
2007-12-07Don't build rpctorture anymore - not maintained. Just remove.Jeremy Allison3-35/+17
Remove all vestiges of pstring (except for smbctool as noted in previous commit). Jeremy (This used to be commit 4c32a22ac50ada3275d2ffba3c1aa08bee7d1549)
2007-12-07Remove pstrings completely except for smbctool (what does this do ?).Jeremy Allison2-24/+9
Don't build this for now. Jeremy. (This used to be commit 46b67fd82c795d1a34a1efca9e409c0f3fa4f3a2)
2007-12-06*Really* fix the no password -N opt :-).Jeremy Allison2-8/+1
Jeremy. (This used to be commit 187d8a94eae87a32432c7c295698517b6ae31523)
2007-12-06Fix the '-N' option.Jeremy Allison1-1/+1
Jeremy. (This used to be commit b91b61b54f02f11d80fc25b268faa354fcd1f6e0)
2007-12-06Get closer to building with smbmount. Move parameter line changesJeremy Allison2-80/+131
into lib/util.c Jeremy. (This used to be commit 6ac5d81655927ba8eabea35adaae5adfcbb821c9)
2007-12-06Make cmdline_auth_info private to lib/popt_common.c. ProvideJeremy Allison1-14/+4
accessor functions. Jeremy. (This used to be commit 420195dd3e8b1b6771ab8be8bc974edaafc0cf8f)
2007-12-06Remove pstrings from client/client.c by doing a large rewrite.Jeremy Allison4-82/+136
Mostly compiles.... Jeremy. (This used to be commit c87f3eba9aa52f4ab25d77e2167262bf5c43b1a6)
2007-12-05Compile fix to the automount support. Patch from GlaDiaC.Gerald (Jerry) Carter1-1/+1
(This used to be commit 487ab6e75e8b8d15f2a37e4ba4129eb2475d4c86)
2007-12-05Remove some globalsVolker Lendecke1-23/+50
(This used to be commit 31d0a846db08d845e6cdfd85def4ac1c34031e02)
2007-12-05Make share_info_db_init staticVolker Lendecke1-1/+1
(This used to be commit 111502d3a2901abcff25792bed3c4038a7592410)
2007-12-05Remove a static, and "signal_received" needs to be sig_atomic_tVolker Lendecke1-15/+18
(This used to be commit 8acd4a202f6b4518c2ce9cdd30f5dfb14b86c07c)
2007-12-04Ok, down to just the client/*.c code now.Jeremy Allison1-5/+0
Jeremy. (This used to be commit 7d3959f81a5439800b813ef052382e67424c90cd)
2007-12-04Remove pstring from automount lookups. Remove premature optimization.Jeremy Allison2-72/+60
Jeremy. (This used to be commit 6863fe51b5afea234b04b073d3e1b7608d60620e)
2007-12-04Remove tok pstring from util_str.cJeremy Allison1-2/+8
Do we even make rpctorture anymore ? Jeremy. (This used to be commit fecc3cc45af6145fad9a0570e6cae8422bd2443d)
2007-12-04pull_ascii_pstring is gone.Jeremy Allison1-6/+0
Jeremy. (This used to be commit 288aacce4b56d159218be311019cb951e5a232fd)
2007-12-04Allow STR_TERMINATE and -1 src_len for pull_ucs2_base_talloc().Jeremy Allison1-1/+7
Jeremy. (This used to be commit 063358d87ac9a1d948c8d4b6358e926dd14bb3ac)
2007-12-03Make strhex_to_str clear on string limits. Remove pstring from web/*.cJeremy Allison1-5/+9
Jeremy. (This used to be commit f9c8d62389f8cb47837e5360209936176537df13)
2007-12-03Change tdb_unpack "P" to return a malloc'ed string ratherJeremy Allison1-10/+9
than expect a pstring space to put data into. Fix the (few) callers. Jeremy. (This used to be commit 7722a7d2c63f84b8105aa775b39f0ceedd4ed513)
2007-12-03Fix wkssvc callers.Günther Deschner1-6/+3
Guenther (This used to be commit b734cd8aab163d794b969c4e1e721e81a8b4d44c)
2007-12-03Remove workaround for broken capabilites.h from lib/system.c - now in ↵Michael Adam1-18/+0
lib/replace. Michael (This used to be commit a3fbb5323222334c86c0dc360df8c6a39039bbe6)
2007-12-03Reformat configure checks for broken capabilities.h.Michael Adam1-16/+24
Michael (This used to be commit 834a16225a8fb905a8f870a17ba67670e622eccc)