summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2001-07-22changed the iconv interface to go via ucs2 for all conversions. ThisAndrew Tridgell2-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. (This used to be commit 594f84b4e39182dcf344c02dc0185376a2726395)
2001-07-22switch from UCS2 to UCS-2LEAndrew Tridgell2-18/+3
(This used to be commit e236a3e29e4af24b20ec6af357ce67abf82b4528)
2001-07-20^$&%&*$&)% readline uses \n characters instead of letting the terminal wrapTim Potter1-13/+34
the screen. This mucks up expect something severe. )-: Don't use readline if the CLI_NO_READLINE environment variable is set. (This used to be commit f0b7593ef54f8f093018ee2a8325e6f4422a4bbd)
2001-07-20It looks like the rpc client code in libsmb hasn't been converted to theTim Potter1-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. (This used to be commit e5b62b4961769e45bc377be6180ca61ef5f6c22e)
2001-07-18removed some unnecessary codeAndrew Tridgell1-10/+0
(This used to be commit 1436c9f424abbac2752e952172ddbdf15ec73f91)
2001-07-10much better handling of broken DNS serversAndrew Tridgell1-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 (This used to be commit a83d506e5cd6cef23298211b2fe4e0e25c9e5f48)
2001-07-08added sec_initial_uid() function so we can ask if a file is owned byAndrew Tridgell1-0/+8
the initial uid (This used to be commit 9449544428c9c3153f9e757c57bccda382fa2882)
2001-07-08fixed the auto-initialisation of the iconv descriptorsAndrew Tridgell1-11/+11
(This used to be commit 66632782c583356550446638a832cc46a99f9f62)
2001-07-07Add backend encryption support for NTLMv2.Andrew Bartlett4-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 (This used to be commit 8df8e841445dfe09fc7a06bb55d12adc3fecb345)
2001-07-06fixed strrchr_mAndrew Tridgell1-4/+3
(This used to be commit f4359b5f7ff891d7fcb5772b589756376ae5d412)
2001-07-06Wrapped dlerror() in the same way as the other dlxxx() calls.Jeremy Allison1-0/+9
Jeremy. (This used to be commit ed5a1f70c6d155788b62e9e6e8c5d97a5ca0858d)
2001-07-06formatting fixesAndrew Tridgell1-7/+7
(This used to be commit 67ca6cd8eb20621d3f5926e19822b479ac80cb9c)
2001-07-06check for initialisation in convert_string()Andrew Tridgell1-0/+6
otherwise initial load in smb.conf can fail (This used to be commit e9c53606de237f91712bb9d2a9fdf84b80bce38d)
2001-07-06fixed a silly bug in the internal UTF8 implementationAndrew Tridgell1-1/+14
(This used to be commit 95a9a1814f1a1ac07c316cc920c7493a86d5a09b)
2001-07-06got rid of insanely verbose debug messages on startupAndrew Tridgell1-1/+1
(This used to be commit c3a21fc0f21b3f493031cb0c9a6a990528b276d9)
2001-07-06fixed inetd operation as non-rootAndrew Tridgell1-4/+0
(This used to be commit 9a9da44455fc35cb9b1625ffefd12a9c5fe48d6b)
2001-07-06added some comments and removed an unnecessary checkAndrew Tridgell1-3/+2
(This used to be commit 25c4b3f19315bdef57041da79c12271b72015701)
2001-07-05use alpha_strcpy on DNS namesAndrew Tridgell1-0/+6
(This used to be commit f6f9e95dd9254c6aad19d4fa1ff891bfa33070b6)
2001-07-05optimised the 7 bit case for utf8 conversionAndrew Tridgell1-4/+4
(This used to be commit 0c61e54f152eca6b7607fcce9ea512bc60a19060)
2001-07-05make sure we reset the shift state on error for charsets like SJISAndrew Tridgell1-1/+10
(This used to be commit 42648a7aada48220fdfaf6acfe95b9614122f1da)
2001-07-04unicode string length is twice longer ;-)Jean-François Micouleau1-1/+1
(This used to be commit d39d8429d1cb8a976022ae92a1ce551f7d876aff)
2001-07-04added builtin support for UTF8Andrew Tridgell1-1/+115
(This used to be commit 76d83e7f704cf016308dccaad9bc42d57db97686)
2001-07-04more portability fixesAndrew Tridgell2-4/+4
(This used to be commit bf818268516cfbebcdeacbb0528395e9bbb8e442)
2001-07-04portability fixesAndrew Tridgell1-4/+9
(This used to be commit 7a5c24c219d8b19f2c3cd11fdde3ebcede0646a2)
2001-07-04got rid of __FUNCTION__ debugAndrew Tridgell1-2/+2
(This used to be commit 815ca752744c2ae93390445f4bb6532d396bbc59)
2001-07-04fixed uninitialised variableAndrew Tridgell1-1/+1
(This used to be commit a03992f19b268ca212ada5869c6fc93da5ac3c35)
2001-07-04missed a couple of strchr callsAndrew Tridgell1-1/+1
(This used to be commit 57e7df8ae58020ab653307c1fdfbadd44983e900)
2001-07-04strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell12-48/+48
can't redefine them. damn. (This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
2001-07-04The big character set handling changeover!Andrew Tridgell13-5123/+947
This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
2001-07-03Fixed warnings and made const-safe so it has the correct prototype.Jeremy Allison1-12/+12
Jeremy. (This used to be commit e0f6863a1155db5206c103c29dc597d7c297ec11)
2001-07-03fixed socketpair_tcp for OpenBSDAndrew Tridgell1-4/+9
(This used to be commit d99ce6a5e3455ed38ca3c1ac676b5048edf8c706)
2001-07-03- sorry, forgot to check a pointerSimo Sorce1-3/+5
(This used to be commit 4e0299d4c091bc4a63740f12588675507601e8cd)
2001-07-02Made talloc_realloc() semantics match realloc(). JF was complaining :-).Jeremy Allison1-0/+8
realloc(NULL) == malloc. realloc(p,0) == free() - a no-op in talloc. Jeremy. (This used to be commit 1ab31e5db53bc839d2785cce4d3c739c8004bbf6)
2001-07-01"netbios aliases" and "interfaces" options change from P_STRING to P_LISTSimo Sorce1-5/+5
(This used to be commit db36ed1d80fcbee16d0a0b5f226e56961f3bf1ec)
2001-06-29Ensured all the system calls in msdfs.c go through the vfs layer.Jeremy Allison1-0/+28
Added vfs calls to symlink() and readlink() with appropriate configure checks. Jeremy. (This used to be commit c24e6b41ea60ab4bac2fcd19da947851d6df3c7c)
2001-06-29Replaced memcpy() with memmove() to make safe_strcpy() safe for overlappingTim Potter1-1/+1
source and destination. (This used to be commit 30411d4004ce7062e73506d228ef402b99226eee)
2001-06-27Syncup between 2.2 and HEAD.Jeremy Allison1-17/+16
Jeremy. (This used to be commit 39d4131a4571c9c7a96bdc2f6cd6be80a6c330af)
2001-06-27on sco2 socketpair_tcp needs a bindAndrew Tridgell1-0/+9
(This used to be commit d8e5409ebb883844d9a1abc9840af1809957a444)
2001-06-27handle EISCONN in socketpair_tcpAndrew Tridgell1-1/+2
this should get the auto-tests working on IRIX (This used to be commit 87f90d48d857828a6ed12bdc58d0d881be45dfce)
2001-06-25Ensure numeric group or user names don't get misinterpreted.Jeremy Allison1-4/+8
Jeremy. (This used to be commit e88da9dcc79801028127bcbe328af001b58e653a)
2001-06-25make sure we have BOOL in autoconf usage of util_sec.cAndrew Tridgell1-0/+1
(This used to be commit 72f63f5144ececdef31c659ab645eb71a88943b5)
2001-06-25- make the regresison test mode code build in by default. This shouldAndrew Tridgell2-30/+53
allow us to have test targets without special configure options - fixed make proto so that it actually does something (This used to be commit 55109a752578e9389d853cb27ec17c2114ecff77)
2001-06-23fix compiler warningsSimo Sorce1-3/+0
(This used to be commit 7420e2f7898f1d141ba2af3eda07a67862fee842)
2001-06-23Added other_safe_chars to alpha_strcpy(). Needs testing but is a betterJeremy Allison2-6/+14
fix for the problem. Jeremy. (This used to be commit e059fffd03a1382fb2b7059b6de369d9fc765a17)
2001-06-22Fix for race condition found by Herb where we can end up with a NULL dbf.Jeremy Allison1-8/+0
Jeremy. (This used to be commit 5cbb2106735ad0533198a83d62541cabd7beed20)
2001-06-22added the ability to test smbd safely as an ordinary user. The way it works isAndrew Tridgell2-0/+85
that libsmb/ creates a local tcp socket then launches smbd as a subprocess attached to that socket. smbd thinks it is being launched from inetd. to use it do the following: - compile with -DSMB_REGRESSION_TEST - run like this (also works with smbtorture etc) export SMBD_TEST=1 export LIBSMB_PROG=bin/smbd smbclient //server/share -Uuser%pass obviously you need to setup a smb.conf etc. Using --prefix to configure is useful. The aim of all this stuff is to add a decent set of regression tests to the build farm, so we know if smbd actually runs correctly on all the platforms, not just builds. We can run smbtorture, masktest, locktest etc, plus a bunch of smbclient scripts and any new tests we write. This doesn't help much with nmbd (at least not yet) but its a good start. (This used to be commit 7e8e6ae9a88c4d2587eb4e7f0501cd71bd36ebb2)
2001-06-22Spelling fix.Tim Potter1-1/+1
(This used to be commit 5f4889beb9311fd3912c3dfccf18fc9ab22b964c)
2001-06-22the BAD_PTR idea in talloc.h is actually a bad idea - it means callers have ↵Andrew Tridgell1-7/+1
no way of telling if the call really failed (This used to be commit 7a96ca313e2f6b5ad8a713babd3cac0bbcc4c399)
2001-06-21next_token() was supposed to be a reentrant replacement for strtok(),Andrew Tridgell4-210/+75
but the code suffered from bitrot and is not now reentrant. That means we can get bizarre behaviour i've fixed this by making next_token() reentrant and creating a next_token_nr() that is a small non-reentrant wrapper for those lumps of code (mostly smbclient) that have come to rely on the non-reentrant behaviour (This used to be commit 674ee2f1d12b0afc164a9e9072758fd1c5e54df7)
2001-06-20initial support for paramter type P_LISTSimo Sorce1-43/+23
it will avoid problems with lists being longer than 1024 bytes just now only ip list parameters have been converted to the new type (hosts allow, hosts deny, ssl hosts, ssl hosts resign) (This used to be commit e1572f85d6247b760db10825b2fa688d7ed50bd3)