summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* changed the definition of dos_PutUniCodeAndrew Tridgell2000-03-271-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.
* moved nmblib-specific code from util.c to nmblib.c.Luke Leighton2000-03-271-191/+0
|
* Correctly convert from little-endian UNICODE to dos_codepage when doingJeremy Allison2000-03-221-0/+2
| | | | | secure file create. Jeremy.
* acconfig.h configure configure.in: Added check for UT_SYSLEN for utmp code.Jeremy Allison2000-03-222-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.
* Fixes to add "paranoid" option to popen. Checks some basic things.Jeremy Allison2000-03-161-1/+56
| | | | Jeremy
* Fix from NAKAJI Hiroyuki for a trailing '\n\ in asctime.Jeremy Allison2000-03-151-0/+2
| | | | Jeremy.
* Fixups for compiles with gcc flags -Wall -Wshadow -Wstrict-prototypes ↵Jeremy Allison2000-03-101-5/+5
| | | | | | | -Wpointer-arith -Wcast-qual Partially implemented rpc daemon redirect (needs more work). Jeremy.
* changed prs_unistr to parse empty and non-empty strings the same way.Jean-François Micouleau2000-03-061-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.
* lib/system.c: Fixed gcc warnings.Jeremy Allison2000-02-231-1/+0
| | | | | | nmbd/nmbd_processlogon.c: Use "True" and "False" instead of 1 and 0. Others - preparing for multiple pdu write code. Jeremy.
* Fix for crash bug from Paul Tyler <pct@ansto.gov.au>.Jeremy Allison2000-02-211-10/+11
| | | | Jeremy.
* Fixes for Eastern Europe code page.Jeremy Allison2000-02-181-0/+1
| | | | Jeremy.
* Added support for SO_REUSEPORT for systems that have it.Jeremy Allison2000-02-161-1/+11
| | | | Jeremy.
* Added replacement functions sys_popen and sys_pclose. These are basedJeremy Allison2000-02-153-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.
* Fixed wildcard match bug with '****' with smbclient. Found by Andrew (damn ↵Jeremy Allison2000-02-091-2/+3
| | | | | | him! :-). Jeremy.
* Moved over lib/util_sec (with added fixes) as the HEAD sourceJeremy Allison2000-02-081-4/+50
| | | | | seems to have drifted a little. Jeremy.
* Hum, I should remove my gloves when I'm in front of an xterm :)Jean-François Micouleau2000-02-071-2/+2
| | | | | | fixed a stupid bug in unistr2_to_ascii that I introduced fixed getprinterdata()
* Jeremy can you check lib/util_unistr.c for codepages support ?Jean-François Micouleau2000-02-072-0/+109
| | | | | | | I added 2 UNICODE <-> ASCII functions which _don't_ honor codepage support. J.F.
* Comments to use vfs_* functions instead of dos_* unless reallyTim Potter2000-02-032-4/+16
| | | | accessing files on local disk.
* Added hash-based stat cache code from Ying Chen.Jeremy Allison2000-01-261-0/+320
| | | | Jeremy.
* Second set of inline optimisation fixes from Ying Chen <ying@almaden.ibm.com>.Jeremy Allison2000-01-263-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.
* First set of speed improvements from Ying Chen <ying@almaden.ibm.com>.Jeremy Allison2000-01-251-137/+1
| | | | | Inline several commonly used functions as macros. Jeremy.
* made cvs main up-to-date with samba_tng, with addition of process id toLuke Leighton2000-01-212-7/+12
| | | | msrpc loop-back interface.
* make string_init() staticAndrew Tridgell2000-01-162-2/+2
| | | | use string_set() instead, to avoid the bug Richard discovered
* Added "inherit permissions" patch.Jeremy Allison2000-01-142-0/+31
| | | | | Fixed locking bug found by Andrew. Jeremy.
* Fix problems with broken libc fvct returns.Jeremy Allison2000-01-121-1/+8
| | | | Jeremy.
* Fixed pointer arithmetic found by IRIX compiler.Jeremy Allison2000-01-111-1/+1
| | | | Jeremy.
* Fixed bug in unix_mask_match() that caused veto files not to work.Jeremy Allison2000-01-111-31/+9
| | | | Jeremy.
* this looks like a big commit, but it isn't really :)Andrew Tridgell2000-01-072-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.
* Generic wildcard matching fix from weidel@multichart.de.Jeremy Allison2000-01-061-19/+80
| | | | Jeremy.
* implemented talloc() as described on samba-technical. This fixes theAndrew Tridgell2000-01-051-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.
* simple mods to add msrpc pipe redirection. default behaviour: fall backLuke Leighton2000-01-037-2/+1327
| | | | to using internal msrpc code in smbd.
* got rid of mem_manAndrew Tridgell2000-01-031-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!
* Converted most of the functions in lib/util_str.c to smb_ucs2_t equivalents.Jeremy Allison1999-12-291-37/+875
| | | | Jeremy.
* Fixed range checking in unicode to multibyte function. Oops.Jeremy Allison1999-12-231-9/+15
| | | | Jeremy.
* Added wtoupper/wtolower.Jeremy Allison1999-12-231-0/+19
| | | | Jeremy.
* Samba now includes a full ucs2 upper to lower case (and vica versa) map table.Jeremy Allison1999-12-231-0/+56
| | | | Jeremy.
* include/includes.h: Trimmed down unicode directory entry to be POSIX complient.Jeremy Allison1999-12-222-3/+18
| | | | | | lib/system.c: Trimmed down unicode directory entry to be POSIX complient. lib/util_unistr.c: Added wstrdup(). Jeremy.
* First cut at unicode sys_xx functions. Now to start moving upwards.....Jeremy Allison1999-12-221-0/+169
| | | | Jeremy.
* Ok - we now have the following functions for UNICODE support :Jeremy Allison1999-12-221-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.
* Added new unicode functions - not used yet, but are the basis for theJeremy Allison1999-12-211-1/+209
| | | | | internal unicode conversion of Samba. Jeremy.
* converted all our existing shared memory code to use a tdb databaseAndrew Tridgell1999-12-211-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
* lib/fnmatch.c from 2.0.6Andrew Tridgell1999-12-171-0/+200
|
* interfaces.c from 2.0.6Andrew Tridgell1999-12-171-0/+401
|
* util_sec.c from 2.0.6Andrew Tridgell1999-12-171-0/+326
|
* Unicode conversion fix in Japanese environment from Motonobu TAKAHASHI.Jeremy Allison1999-12-132-2/+1319
| | | | Jeremy.
* 2nd phase of head branch sync with SAMBA_2_0 - this delets all the files ↵Andrew Tridgell1999-12-1318-6540/+0
| | | | that were in the head branch but weren't in SAMBA_2_0
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-1325-3050/+2890
|
* changed function name of get_home_dir() to get_unixhome_dir(), to stopLuke Leighton1999-12-122-5/+5
| | | | | | | clash with gnu readline library. fixed issue with [homes] service not being there - call lp_add_home() just before starting the msrpc processing.
* final part of "first" phase converting over to msrpc daemon architecture.Luke Leighton1999-12-123-252/+241
| | | | | | | | | | | | done a minimal amout of clean-up in the Makefile, removing unnecessary modules from the link stage. this is not complete, yet, and will involve some changes, for example to smbd, to remove dependencies on the password database API that shouldn't be there. for example, smbd should not ever call getsmbpwXXX() it should call the Samr or Lsa API. this first implementation has minor problems with not reinstantiating the same services as the caller. the "homes" service is a good example.
* delineation between smb and msrpc more marked. smbd now constructsLuke Leighton1999-12-125-53/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pdus, and then feeds them over either a "local" function call or a "remote" function call to an msrpc service. the "remote" msrpc daemon, on the other side of a unix socket, then calls the same "local" function that smbd would, if the msrpc service were being run from inside smbd. this allows a transition from local msrpc services (inside the same smbd process) to remote (over a unix socket). removed reference to pipes_struct in msrpc services. all msrpc processing functions take rpcsrv_struct which is a structure containing state info for the msrpc functions to decode and create pdus. created become_vuser() which does everything not related to connection_struct that become_user() does. removed, as best i could, connection_struct dependencies from the nt spoolss printing code. todo: remove dcinfo from rpcsrv_struct because this stores NETLOGON-specific info on a per-connection basis, and if the connection dies then so does the info, and that's a fairly serious problem. had to put pretty much everything that is in user_struct into parse_creds.c to feed unix user info over to the msrpc daemons. why? because it's expensive to do unix password/group database lookups, and it's definitely expensive to do nt user profile lookups, not to mention pretty difficult and if you did either of these it would introduce a complication / unnecessary interdependency. so, send uid/gid/num_groups/gid_t* + SID+num_rids+domain_group_rids* + unix username + nt username + nt domain + user session key etc. this is the MINIMUM info identified so far that's actually implemented. missing bits include the called and calling netbios names etc. (basically, anything that can be loaded into standard_sub() and standard_sub_basic()...)