summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell2001-09-104-42/+22
| | | | | | | | | replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor limit that we hit with nasty consequences on some systems I would eventually prefer us to have a configure test to see if we need to replace stdio, but for now this code needs to be tested widely so I'm enabling it by default.
* convert more code to using d_printfAndrew Tridgell2001-09-081-2/+2
|
* added "display charset" option in smb.conf, along with d_printf()Andrew Tridgell2001-09-073-36/+167
| | | | | | | | | which should now be used instead of DEBUG(0) or printf() for interactive messages I have only converted client.c to use d_printf(), and the code hasn't had much testing yet. Eventually we want all interactive code to use d_printf(), plus SWAT
* got rid of USE_TDB_MMAP_FLAG as its not needed any moreAndrew Tridgell2001-09-061-1/+1
|
* Started a cleanup of smbpasswd related stuff. I've created a new fileTim Potter2001-09-061-0/+201
| | | | | | | | | | | | | | | | lib/smbpasswd.c which will contain routines related to manipulating smbpasswd entries. - renamed and moved pdb_{get,set}hexpwd() functions - renamed and moved pdb_{decode,encode}acct_ctrl() functions - started hiding references to the cruftalicious NEW_PW_FORMAT_SPACE_PADDED_LEN constant - started gradual rename of references to acct_ctrl to acb_info which is the nomenclature used in MSDN and header files There's still more work to be done. Currently there are several places where smbpasswd entries are iterated etc. Ideally this should all happen through the passdb system.
* Merge of transfer file code from 2.2, fix for readbraw.Jeremy Allison2001-09-041-66/+39
| | | | Jeremy.
* the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but ↵Andrew Tridgell2001-09-041-2/+2
| | | | the client code still needs some work
* Fixed some compiler warnings.Tim Potter2001-09-041-2/+0
|
* more NTSTATUS/WERROR conversionAndrew Tridgell2001-09-031-3/+3
|
* Merge from TNG - function to initialise NTTIME structure.Tim Potter2001-08-281-0/+9
|
* fixed typoAndrew Tridgell2001-08-281-1/+1
|
* converted another bunch of stuff to NTSTATUSAndrew Tridgell2001-08-273-8/+8
|
* started converting NTSTATUS to be a structure on systems with gcc in order ↵Andrew Tridgell2001-08-271-6/+11
| | | | to make it type incompatible with BOOL so we catch errors sooner. This has already found a number of bugs
* bzero is not used (deprecated) as it's a BSDism.Jeremy Allison2001-08-261-62/+52
| | | | | | Syscalls must check for -1, not < 0 (POSIX). Formating (tab) fixups. Jeremy.
* Small changes to get ready for adding WINS failover to smbd and clients.Christopher R. Hertel2001-08-261-5/+76
| | | | | | | | | | | | My plan is to change the lp_wins_server() function to lp_wins_server_list(). My reason being: With WINS failover the 'wins server' parameter may take a list of WINS server names/IPs instead of just one. If it's a list, then calling lp_wins_server() won't give you what you expect (that is, a single WINS server name or IP). Instead, the functions in wins_srv.c should be used. You can get either the name or IP of the 'current' working WINS server in the list. Chris -)-----
* Fussing with debug lines in open_socket_in(). I cleaned up some slightlyChristopher R. Hertel2001-08-261-32/+56
| | | | | | | | funky code that was simply setting a local int to 0 or 1 and also added calls to strerror() in some of the debug lines. The use of the dlevel parameter in this function is a little awkward. There should probably be some comments about it in the source.
* fixes big endian unistring problems. Need to check that it didn'tHerb Lewis2001-08-241-2/+9
| | | | break little-endian machines.
* get rid of old debug code and possible socket leakHerb Lewis2001-08-241-9/+1
|
* better error reporting for servers that don't do port 445Andrew Tridgell2001-08-231-1/+1
|
* a bunch of fixes from the sflight to seattleAndrew Tridgell2001-08-203-15/+26
| | | | | | in particular: - fixed NT status code for a bunch of ops - fixed handling of protocol levels in ms_fnmatch
* More Realloc fixes.Jeremy Allison2001-08-191-4/+3
| | | | Jeremy.
* removed unused fileAndrew Tridgell2001-08-161-113/+0
|
* this is a big global fix for the ptr = Realloc(ptr, size) bug.Simo Sorce2001-08-124-14/+32
| | | | | | many possible mem leaks, and segfaults fixed. someone should port this fix to 2.2 also.
* Added Mike Davidsons Tru64 ACL patch.Jeremy Allison2001-08-101-13/+23
| | | | Jeremy.
* Use the new client error api.Tim Potter2001-08-101-2/+2
|
* Change all realloc() statements to Realloc() (ecxept for tdb.c)Simo Sorce2001-08-082-2/+2
| | | | | | | changed some code to exploit the fact that Realloc(NULL, size) == malloc(size) fixed some possible mem leaks, or seg faults. thanks to andreas moroder (mallocs not checked in client/client.c, client/smbumount.c)
* me stupid.Simo Sorce2001-08-051-1/+1
| | | | | never commit without building. sorry.
* Some fixes about malloc/Realloc and mem leakSimo Sorce2001-08-053-6/+15
| | | | thanks to andreas moroder
* Oops. Typo.Jeremy Allison2001-08-011-1/+1
| | | | Jeremy.
* Pidfile check can be read-only. Removed old ifdef in password.cJeremy Allison2001-08-011-6/+6
| | | | Jeremy.
* Added "use mmap" for HPUX.Jeremy Allison2001-07-301-1/+1
| | | | Jeremy.
* Fix from Michael Davidson <md@caldera.com> for DEC OSF/1 ACLs (ie.Jeremy Allison2001-07-261-6/+152
| | | | | Digital UNIX). Jeremy.
* need to push smb_search strings in client charsetAndrew Tridgell2001-07-251-5/+5
|
* got rid of INFO: msgs at debug level 1Andrew Tridgell2001-07-251-2/+2
|
* ucs2 is always a multiple of 2 bytesAndrew Tridgell2001-07-251-0/+6
| | | | this gets rid of a bunch of iconv warnings
* Convert other parameters (read list, write list, valid users...) to the ↵Simo Sorce2001-07-241-21/+33
| | | | | | | P_LIST format. changed functions to use list instead of strings addedd lp_list_substitute function
* Fix case insensitive password change code.Jeremy Allison2001-07-231-0/+13
| | | | | Fixed crash bug with un-zeroed talloced memory. Jeremy.
* changed the iconv interface to go via ucs2 for all conversions. ThisAndrew Tridgell2001-07-222-73/+186
| | | | | | fixes some problems wih some character sets and allows for using internal charsets in conjunction with ionv charsets this makes us slower but more correct. speed will come later.
* switch from UCS2 to UCS-2LEAndrew Tridgell2001-07-222-18/+3
|
* ^$&%&*$&)% readline uses \n characters instead of letting the terminal wrapTim Potter2001-07-201-13/+34
| | | | | | the screen. This mucks up expect something severe. )-: Don't use readline if the CLI_NO_READLINE environment variable is set.
* It looks like the rpc client code in libsmb hasn't been converted to theTim Potter2001-07-201-0/+10
| | | | | | | | | | | | new internal string stuff. The main problem is that some unicode strings are null terminated and some aren't. There's no rhyme or reason to it - some pipes have 99% of the strings terminated and some have 99% unterminated. To avoid having to actually know the termination policy, I propose a set of functions that take a UNISTR2* and use the length contained there. Added rpcstr_pull_unistr2_string() function to convert a unicode string of dubious termination to a fstring.
* removed some unnecessary codeAndrew Tridgell2001-07-181-10/+0
|
* much better handling of broken DNS serversAndrew Tridgell2001-07-101-16/+2
| | | | | | we no longer lookup our own name when we create a socket in open_socket_in(). That makes things work much better with the broken DNS server at VA
* added sec_initial_uid() function so we can ask if a file is owned byAndrew Tridgell2001-07-081-0/+8
| | | | the initial uid
* fixed the auto-initialisation of the iconv descriptorsAndrew Tridgell2001-07-081-11/+11
|
* Add backend encryption support for NTLMv2.Andrew Bartlett2001-07-074-6/+387
| | | | | | | | | | | | The leg-work for this was done by the folks at samba-tng.org, I'm just bringing it accross to HEAD. The MD5 implementation is seperatly derived, and does not have the copyright problems that the one in TNG has. Also add const to a few places where it makes sence. Andrew Bartlett
* fixed strrchr_mAndrew Tridgell2001-07-061-4/+3
|
* Wrapped dlerror() in the same way as the other dlxxx() calls.Jeremy Allison2001-07-061-0/+9
| | | | Jeremy.
* formatting fixesAndrew Tridgell2001-07-061-7/+7
|
* check for initialisation in convert_string()Andrew Tridgell2001-07-061-0/+6
| | | | otherwise initial load in smb.conf can fail