1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

3205 Commits

Author SHA1 Message Date
Andrew Tridgell
8767334d8a ignore a few files -
Andrew Tridgell
25b13f8b79 got rid of mem_man
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!
-
Andrew Tridgell
771f610f0d the bulk of the unexpected packet handling code is in here -
Andrew Tridgell
280e6359d3 added the unexpected packet database (unexpected.tdb)
this means "nmblookup -S" now always works, even with broken servers
the database stores all unexpected replies and these can be accessed
by any client.
while doing this I cleaned up a couple of functions, and put in place
a better trn_id generator. in most places the code got quite a bit
simpler due to the addition of simple helper functions.

I haven't yet put the code in to take advantage of this for pdc
replies - that will be next. Jeremys pdc finding code will then work :)
-
Andrew Tridgell
1fb293732e drop the alignment to 4 bytes - this makes tdb more space efficient
and doesn't seem to affect performance
-
Andrew Tridgell
b87d1442db fixed active shares display -
Andrew Tridgell
d5ceb2972b don't close the database after each claim_connection() -
Andrew Tridgell
c199ec9543 updated docs -
Andrew Tridgell
00e9da3ca5 - added tdb_flags option to tdb_open()
- added TDB_CLEAR_IF_FIRST flag to clear the database if this is the
  first attached process. Useful for non-persistent databases like our
  locking area (this will also make upgrades to new database layouts easier)
- use lock_path() in a couple of places
- leave connections database open while smbd running
- cleaned up some tdb code a little, using macros for constants
-
Andrew Tridgell
88a146ab04 show test result in ops/sec -
Andrew Tridgell
b35b5c6388 - optimise tdb_store() a little
- prevent a free of an unallocated pointer
-
Jeremy Allison
1ba42aca21 Converted most of the functions in lib/util_str.c to smb_ucs2_t equivalents.
Jeremy.
-
Andrew Tridgell
3b3fdd8661 a useful locking tester - it uses lots of simultaneous writers -
Andrew Tridgell
584537961b fixed more locking bugs - all seems OK now -
Jeremy Allison
61e06c44b4 Fixed range checking in unicode to multibyte function. Oops.
Jeremy.
-
Jeremy Allison
2e03ed6254 Added wtoupper/wtolower.
Jeremy.
-
Jeremy Allison
d7b72d4cbf Samba now includes a full ucs2 upper to lower case (and vica versa) map table.
Jeremy.
-
Jeremy Allison
82421e93c0 Upper to lower case map table for unicode.
Jeremy.
-
Jeremy Allison
e59fe73f19 Awk script to create #include C code from unicode upper -> lower case map.
Jeremy.
-
Jeremy Allison
a42cf2036f Unicode upper <--> lower character map. Needed for wisXXX functions.
Jeremy.
-
Andrew Tridgell
1f5dc92404 fixed locking code -
Jeremy Allison
ca64f4ab00 include/includes.h: Trimmed down unicode directory entry to be POSIX complient.
lib/system.c: Trimmed down unicode directory entry to be POSIX complient.
lib/util_unistr.c: Added wstrdup().
Jeremy.
-
Andrew Tridgell
f4ecc5a8e3 improved error message in case the lock list is truncated -
Andrew Tridgell
ed7541668e fixed a bug in the handling of tdb version number upgrade -
Jeremy Allison
b5eb009cc3 First cut at unicode sys_xx functions. Now to start moving upwards.....
Jeremy.
-
Andrew Tridgell
c547ffa9e9 added some paranoia code -
Jeremy Allison
ae34e2589a Ok - we now have the following functions for UNICODE support :
unicode_to_unix()
unix_to_unicode()
unicode_to_dos()
dos_to_unicode()
wstrlen()
safe_wstrcpy()
safe_wstrcat()
wstrcmp()
wstrncmp()
wstrstr()
wstrchr()
wstrrchr()
wstrtok()
Jeremy.
-
Andrew Tridgell
84fe2337c7 when no shares are returned the *shares pointer must be set to null -
Jeremy Allison
302412df64 Added new unicode functions - not used yet, but are the basis for the
internal unicode conversion of Samba.
Jeremy.
-
Jeremy Allison
2cf408772f Changed MAX to MIN in SET_FILE_BASIC_INFO as recommended by "Michael C. Adler" <Michael.Adler@compaq.com>
as this breaks the least number of programs.
Jeremy.
-
Andrew Tridgell
efb4fbcca8 expanded the tdb documentation -
Andrew Tridgell
6d506ee641 changed %g to %3.1f to be friendly to our poor snprintf() code -
Andrew Tridgell
835b9881c0 changed message is connections.tdb doesn't exist -
Andrew Tridgell
e48c2d9937 converted all our existing shared memory code to use a tdb database
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
-
Andrew Tridgell
4951755413 first cut at using the tdb code for the connections structure, the
SWAT status page and smbstatus. It made the code _much_ simpler, I
wish we'd done a database module a long time ago!
-
Andrew Tridgell
7067aeecab this was left out from the 2.0.6 merge -
Andrew Tridgell
c89d29cc5e first pass at the database code for Samba. This also includes a test
suite and a very simple tool for manuipulating the databases.

the main code is in tdb/tdb.c and includes both mmap and file based
IO. All databases auto-expand and allow multiple simultaneous writers.

the next step is using this new capability in lots of places in Samba
where we have existing ad-hoc databases
-
Jeremy Allison
023f90e766 Fix based on code from monyo@home.monyo.com to fix multibyte continuation
issues.
Jeremy.
-
Jeremy Allison
886ad59d79 Fix from tulipant-gergely@dbrt.hu for returning incorrect error code
on user auth fail.
Jeremy.
-
Jeremy Allison
8f93c08881 *Finally*. Correct patch to fix timestamp problems from Paul Eggert <eggert@twinsun.com>.
I wish I had written this one :-).
Jeremy.
-
Andrew Tridgell
4058eb5bff added basic nsswitch support - this allows you to use a "wins" entry
in a /etc/nsswitch.conf hosts line.

Only tested on RH6.1, but should work on a broad range of Linux
distributions. It could probably be made to work with Solaris pretty
easily.

It does not build by default. Build it with "make nsswitch"
-
Andrew Tridgell
4a20579571 more files from 2.0.6 -
Andrew Tridgell
c3a30ce459 update version to pre-3.0.0 -
Andrew Tridgell
599a7e7f9e client/smbspool.c from 2.0.6 -
Andrew Tridgell
dadad3ed67 lib/fnmatch.c from 2.0.6 -
Andrew Tridgell
452776a5a7 printing/print_cups.c from 2.0.6 -
Andrew Tridgell
a3d7ec0c9d interfaces.h from 2.0.6 -
Andrew Tridgell
4e1458b8c1 interfaces.c from 2.0.6 -
Andrew Tridgell
955d187139 util_sec.c from 2.0.6 -
Jeremy Allison
decc6ebca2 Unicode conversion fix in Japanese environment from Motonobu TAKAHASHI.
Jeremy.
-