summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2000-04-11include/byteorder.h: ALIGN4/ALIGN2 macros.Jeremy Allison1-25/+0
include/includes.h: Added SMB_BIG_UINT_BITS. lib/util.c: Removed align2/align4 - use macros. libsmb/namequery.c: Use ALIGN2. locking/locking.c: Replace do_lock, do_unlock, args with SMB_BIG_UINT, not SMB_OFF_T. Needed to move to hiding POSIX locks at a lower layer. nmbd/nmbd_processlogon.c: Use ALIGN2/ALIGN4 macros. smbd/blocking.c: Replace do_lock, do_unlock, args with SMB_BIG_UINT, not SMB_OFF_T. smbd/reply.c: Replace do_lock, do_unlock, args with SMB_BIG_UINT, not SMB_OFF_T. Jeremy. (This used to be commit 491eea8a20bf80d426625479326211dc975857a6)
2000-04-11add an align4() functionAndrew Tridgell1-1/+14
(This used to be commit 7969f4dccbc5a506ef58b9270a08f8f70d9006f7)
2000-04-11finally got sick of the "extern int Client" code and the stupidAndrew Tridgell3-119/+94
assumption that we have one socket everywhere while doing so I discovered a few bugs! 1) the clientgen session retarget code if used from smbd or nmbd would cause a crash as it called close_sockets() which closed our main socket! fixed by removing close_sockets() completely - it is unnecessary 2) the caching in client_addr() and client_name() was bogus - it could easily get fooled and give the wrong result. fixed. 3) the retarget could could recurse, allowing an easy denial of service attack on nmbd. fixed. (This used to be commit 5937ab14d222696e40a3fc6f0e6a536f2d7305d3)
2000-04-11added a cheap and nasty skip_unibuf() fn to allow easier merging fromAndrew Tridgell1-0/+10
TNG out unicode string handling functions need a lot of work (This used to be commit 707401fc1e697362cdaadcfaac4edc964b80b1a0)
2000-03-27changed the definition of dos_PutUniCodeAndrew Tridgell1-4/+9
the previous definition could result is us overflowing a buffer. The null termination was always added yet the size returned did not include the null termination. the new function takes a BOOL null_terminate, and always returns the total number of bytes consumed by the string. (This used to be commit 426c90433396a95033eefcc4af97603abc934221)
2000-03-27moved nmblib-specific code from util.c to nmblib.c.Luke Leighton1-191/+0
(This used to be commit 1b9077a1d5295bc8522b83ebed2d41d5dbd28a27)
2000-03-22Correctly convert from little-endian UNICODE to dos_codepage when doingJeremy Allison1-0/+2
secure file create. Jeremy. (This used to be commit 90134dd13721f60d4fb05ce9434b65e95ff09629)
2000-03-22acconfig.h configure configure.in: Added check for UT_SYSLEN for utmp code.Jeremy Allison2-52/+15
include/byteorder.h: Added alignment macros. include/nameserv.h: Added defines for msg_type field options - from rfc1002. lib/time.c: Typo fix. lib/util_unistr.c: Updates from UNICODE branch. printing/nt_printing.c: bzero -> memset. smbd/connection.c: Added check for UT_SYSLEN for utmp code. Other fixes : Rollback of unapproved commit from Luke. Please *ask* next time before doing large changes to HEAD. Jeremy. (This used to be commit f02999dbf7971b4ea05050d7206205d7737a78b2)
2000-03-16Fixes to add "paranoid" option to popen. Checks some basic things.Jeremy Allison1-1/+56
Jeremy (This used to be commit 3b8cbb10de322fd7a1063fb5b681790b10d24ab0)
2000-03-15Fix from NAKAJI Hiroyuki for a trailing '\n\ in asctime.Jeremy Allison1-0/+2
Jeremy. (This used to be commit 87df97c9365a185e4ea6bac7b832b8cf38144624)
2000-03-10Fixups for compiles with gcc flags -Wall -Wshadow -Wstrict-prototypes ↵Jeremy Allison1-5/+5
-Wpointer-arith -Wcast-qual Partially implemented rpc daemon redirect (needs more work). Jeremy. (This used to be commit a462191698fa589ceac4afd14c652adf699eccad)
2000-03-06changed prs_unistr to parse empty and non-empty strings the same way.Jean-François Micouleau1-14/+20
fixed typo in SPOOLSS_SYNT some cleanup of unused functions wrote make_spoolss_enumprinter and make_spoolss_openprinterex for rpcclient as I'm trying to keep in sync the parsing code between HEAD and TNG. Will commit changes to TNG after lunch. J.F. (This used to be commit 025cdb345f6de287a41d4449b2662dbc5e762bf2)
2000-02-23lib/system.c: Fixed gcc warnings.Jeremy Allison1-1/+0
nmbd/nmbd_processlogon.c: Use "True" and "False" instead of 1 and 0. Others - preparing for multiple pdu write code. Jeremy. (This used to be commit 9f879ec396230deba34fbe5e82d8a65f92137c54)
2000-02-21Fix for crash bug from Paul Tyler <pct@ansto.gov.au>.Jeremy Allison1-10/+11
Jeremy. (This used to be commit 89aa4d8ca9cc9e8e6dd4566076c0cace8b82d838)
2000-02-18Fixes for Eastern Europe code page.Jeremy Allison1-0/+1
Jeremy. (This used to be commit 0ec82d661a27a02322e5c8da20a18f33bfb24a3e)
2000-02-16Added support for SO_REUSEPORT for systems that have it.Jeremy Allison1-1/+11
Jeremy. (This used to be commit 377515cf9624720362c0b76969b9381d9972a13f)
2000-02-15Added replacement functions sys_popen and sys_pclose. These are basedJeremy Allison3-15/+244
on the glibc source code and are safer than the traditional popen as they don't use a shell to exec the requested command. Now we have these functions they can be tightened up (environment etc.) as required to make a safe popen. It should now be safe to add the environement variable loading code to loadparm.c Jeremy. (This used to be commit b52e92b09d4ca3b66e534f520468dee27065d048)
2000-02-09Fixed wildcard match bug with '****' with smbclient. Found by Andrew (damn ↵Jeremy Allison1-2/+3
him! :-). Jeremy. (This used to be commit c8ca70f99ee2eae5e29ddf0dd4bc231fbcd188f2)
2000-02-08Moved over lib/util_sec (with added fixes) as the HEAD sourceJeremy Allison1-4/+50
seems to have drifted a little. Jeremy. (This used to be commit ebcdb4afee04cc3b94e60b1de86c2b534d4e233e)
2000-02-07Hum, I should remove my gloves when I'm in front of an xterm :)Jean-François Micouleau1-2/+2
fixed a stupid bug in unistr2_to_ascii that I introduced fixed getprinterdata() (This used to be commit 2f544a807714024c0fe2ddc26e11c9ddcb47e81f)
2000-02-07Jeremy can you check lib/util_unistr.c for codepages support ?Jean-François Micouleau2-0/+109
I added 2 UNICODE <-> ASCII functions which _don't_ honor codepage support. J.F. (This used to be commit b81dc7b7f832cae2e66076398a134fbb6c1f78ca)
2000-02-03Comments to use vfs_* functions instead of dos_* unless reallyTim Potter2-4/+16
accessing files on local disk. (This used to be commit b55f63da7e6a3c306ce668c77ed63a41d33240db)
2000-01-26Added hash-based stat cache code from Ying Chen.Jeremy Allison1-0/+320
Jeremy. (This used to be commit b62a1bd6328f5894ae1a2fef3ef6fc66304ade52)
2000-01-26Second set of inline optimisation fixes from Ying Chen <ying@almaden.ibm.com>.Jeremy Allison3-42/+61
Stop makeing function calls for every use of skip_multibyte_char. This function is called several *million* times during a NetBench run :-). Jeremy. (This used to be commit e5a3deba46ea2d4cb49a6c4b73edd766fe8b5a5c)
2000-01-25First set of speed improvements from Ying Chen <ying@almaden.ibm.com>.Jeremy Allison1-137/+1
Inline several commonly used functions as macros. Jeremy. (This used to be commit fc0219c7cc4b83e6db17d5b3be70d74fd7971089)
2000-01-21made cvs main up-to-date with samba_tng, with addition of process id toLuke Leighton2-7/+12
msrpc loop-back interface. (This used to be commit adbf97c0a93149e17496b002ecc8ecdb3f360ed5)
2000-01-16make string_init() staticAndrew Tridgell2-2/+2
use string_set() instead, to avoid the bug Richard discovered (This used to be commit fdcbf6b52d8373bf8f35718a9649788415c23342)
2000-01-14Added "inherit permissions" patch.Jeremy Allison2-0/+31
Fixed locking bug found by Andrew. Jeremy. (This used to be commit 38dffd360dc2e44bfc9e751f017e24f81ff0f2fa)
2000-01-12Fix problems with broken libc fvct returns.Jeremy Allison1-1/+8
Jeremy. (This used to be commit 6b61f2fe66a62082fdab998ec7bbb1184b9583d7)
2000-01-11Fixed pointer arithmetic found by IRIX compiler.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 20d72e8959fc800836369e4c970f7cb84b95ac9a)
2000-01-11Fixed bug in unix_mask_match() that caused veto files not to work.Jeremy Allison1-31/+9
Jeremy. (This used to be commit f5fedf80bce84dba1468631202337077511bcd25)
2000-01-07this looks like a big commit, but it isn't really :)Andrew Tridgell2-6/+4
This fixes our netbios scope handling. We now have a 'netbios scope' option in smb.conf and the scope option is removed from make_nmb_name() this was prompted by a bug in our PDC finding code where it didn't append the scope to the query of the '*' name. (This used to be commit b563be824b8c3141c49558eced7829b48d4ab26f)
2000-01-06Generic wildcard matching fix from weidel@multichart.de.Jeremy Allison1-19/+80
Jeremy. (This used to be commit 8b790cf3e21dd415e1daba24f5eba219e824cdc4)
2000-01-05implemented talloc() as described on samba-technical. This fixes theAndrew Tridgell1-0/+96
lp_string() bug properly. we still need to add lp_talloc_free() calls in all the main event loops, I've only put it in smbd and nmbd thus far. (This used to be commit aa7f81552540f5dca2c146f5edd805611d5b390f)
2000-01-03simple mods to add msrpc pipe redirection. default behaviour: fall backLuke Leighton7-2/+1327
to using internal msrpc code in smbd. (This used to be commit 8976e26d46cb991710bc77463f7f928ac00dd4d8)
2000-01-03got rid of mem_manAndrew Tridgell1-7/+0
yamd is much better, and doesn't require any source code changes if you haven't seen yamd then take a look at http://www3.hmc.edu/~neldredge/yamd/ its excellent! (This used to be commit 25b13f8b79d648188036f027f45bc78ec117cc88)
1999-12-29Converted most of the functions in lib/util_str.c to smb_ucs2_t equivalents.Jeremy Allison1-37/+875
Jeremy. (This used to be commit 1ba42aca2163c534f6be4e4a733604e3dffe0ed8)
1999-12-23Fixed range checking in unicode to multibyte function. Oops.Jeremy Allison1-9/+15
Jeremy. (This used to be commit 61e06c44b47834ed297aacee6d59c40796b4ffb5)
1999-12-23Added wtoupper/wtolower.Jeremy Allison1-0/+19
Jeremy. (This used to be commit 2e03ed62542152264ca5315b9ee9bb045b7f0b03)
1999-12-23Samba now includes a full ucs2 upper to lower case (and vica versa) map table.Jeremy Allison1-0/+56
Jeremy. (This used to be commit d7b72d4cbfb6bd1925abc7f95c1180d3d65856a5)
1999-12-22include/includes.h: Trimmed down unicode directory entry to be POSIX complient.Jeremy Allison2-3/+18
lib/system.c: Trimmed down unicode directory entry to be POSIX complient. lib/util_unistr.c: Added wstrdup(). Jeremy. (This used to be commit ca64f4ab00c6d54022ba9bd4b869523566a242d7)
1999-12-22First cut at unicode sys_xx functions. Now to start moving upwards.....Jeremy Allison1-0/+169
Jeremy. (This used to be commit b5eb009cc3cfd1adc044e91911d59acdb54c30cb)
1999-12-22Ok - we now have the following functions for UNICODE support :Jeremy Allison1-0/+127
unicode_to_unix() unix_to_unicode() unicode_to_dos() dos_to_unicode() wstrlen() safe_wstrcpy() safe_wstrcat() wstrcmp() wstrncmp() wstrstr() wstrchr() wstrrchr() wstrtok() Jeremy. (This used to be commit ae34e2589ac32b7144607b77bd0d42bc74b42aff)
1999-12-21Added new unicode functions - not used yet, but are the basis for theJeremy Allison1-1/+209
internal unicode conversion of Samba. Jeremy. (This used to be commit 302412df64aa4b6572b13ef61dfd68c3f8ebbb8b)
1999-12-21converted all our existing shared memory code to use a tdb databaseAndrew Tridgell1-0/+21
instead of either sysv or mmap shared memory or lock files. this means we can now completely remove locking_shm.c locking_slow.c shmem.c shmem_sysv.c and lots of other things also got simpler locking.c got a bit larger, but is much better compartmentalised now (This used to be commit e48c2d9937eea0667b8cd3332e49c06314ef31e7)
1999-12-17lib/fnmatch.c from 2.0.6Andrew Tridgell1-0/+200
(This used to be commit dadad3ed675c8ec141abef7836f64de9da13b14d)
1999-12-17interfaces.c from 2.0.6Andrew Tridgell1-0/+401
(This used to be commit 4e1458b8c161f87339eba251c2179946d3b0405a)
1999-12-17util_sec.c from 2.0.6Andrew Tridgell1-0/+326
(This used to be commit 955d187139365d16f3fca1abd3853ca4e49f244c)
1999-12-13Unicode conversion fix in Japanese environment from Motonobu TAKAHASHI.Jeremy Allison2-2/+1319
Jeremy. (This used to be commit decc6ebca29abd78754c275352de58b0de2e2aa5)
1999-12-132nd phase of head branch sync with SAMBA_2_0 - this delets all the files ↵Andrew Tridgell18-6540/+0
that were in the head branch but weren't in SAMBA_2_0 (This used to be commit d7b208786590b5a28618590172b8d523627dda09)