1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

37 Commits

Author SHA1 Message Date
Andrew Tridgell
a689b24db1 the next step in the intl changeover. This should get us compiling agian,
and also completes the switch to lang_tdb.c. SWAT should now work
with a po file in the lib/ directory

also removed useless SYSLOG defines in many files
(This used to be commit 5296b20ad8)
2001-10-14 12:10:29 +00:00
Andrew Tridgell
8cec5cf35f first step in converting the head branch to use lang_tdb.c instead
of gettext for internationalisation support. There is more to do
(This used to be commit ab7f67677a)
2001-10-11 08:40:42 +00:00
Andrew Tridgell
9bcd133e9e switched over to a new method of handling uppercase/lowercase mappings
for unicode strings. The new method relies on 3 files that are mmap'd
at startup to provide the mapping tables. The upcase.dat and
lowcase.dat tables should be the same on all systems. The valid.dat
table says what characters are valid in 8.3 names, and differs between
systems. I'm committing the japanese valid.dat here, in future we need
some way of automatically installing and choosing a appropriate table.

This commit also adds my mini tdb based gettext replacement in
intl/lang_tdb.c. I have not enabled this yet and have not removed the
old gettext code as the new code is still being looked at by Monyo.

Right now the code assumes that the upcase.dat, lowcase.dat and
valid.dat files are installed in the Samba lib directory. That is not
a good choice, but I'll leave them there until we work out the new
install directory structure for Samba 3.0.

simo - please look at the isvalid_w() function and think about using
it in your new mangling code. That should be the final step to
correctly passing the chargen test code from monyo.
(This used to be commit 1c221994f1)
2001-10-03 12:18:20 +00:00
Andrew Tridgell
e8547256f3 better method of generating the case equivalence table
interestingly, this shows that w2kp-jp and w2kp have the *same* case
equivalence table, but it is not the same as the Samba one.
(This used to be commit b97fbfcd7c)
2001-10-02 13:26:38 +00:00
Andrew Tridgell
58bc10518b the CASETABLE torture target now generates the complete unicode
equivalence table for a server. This was inspired by the chargen win32
code from monyo.

This takes a *long* time to run against a Samba server due to the case
insensitive comparisons in the filesystem. That makes it a N^2
operation, and N is 64k. It is linear on NT.
(This used to be commit 441f9415b3)
2001-10-02 05:52:11 +00:00
Tim Potter
dc1fc3ee8e Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.
(This used to be commit 2d0922b0ea)
2001-10-02 04:29:50 +00:00
Andrew Tridgell
4fe127dbe8 added a little smbtorture test for dumping the unicode table of a
server. This is just a framework right now - I want this to eventually
replace the win32 test code from monyo

The interesting this about this test is that it shows up a really
horrible performance bug in our stat cache code. I'll see if I can fix
it.
(This used to be commit eb668b54af)
2001-09-25 05:20:43 +00:00
Simo Sorce
2d6a3079b8 move to SAFE_FREE()
(This used to be commit fc71962409)
2001-09-17 11:37:57 +00:00
Andrew Tridgell
23af074326 fixed ctemp in server and client. It turns out that ctemp on NT is completely broken, and it's pointless to emulate their brokenness completely in this case, but at least this makes us use approximately the same packet format. The spec is complelet wrong in this case
(This used to be commit 2d507ec669)
2001-09-17 04:23:48 +00:00
Andrew Bartlett
f7f0200210 Fix (I hope) for a number of little compile warnings found by the IRIX
compilers on the build farm.

Andrew Bartlett
(This used to be commit 0ff0a91a6b)
2001-09-16 08:24:44 +00:00
Andrew Tridgell
b12a4dd9b6 declare dbf in one spot
(This used to be commit f41c3bb80f)
2001-09-10 12:14:18 +00:00
Andrew Tridgell
b30e75692d replaced stdio in many parts of samba with a XFILE. XFILE is a cut-down
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.
(This used to be commit 1af8bf34f1)
2001-09-10 11:08:57 +00:00
Andrew Tridgell
fc07eb5eef - fixed proto.h build on systems using a parallel make
- changed DENY1 and DENY2 tests to only report errors
(This used to be commit 9341e5534d)
2001-09-06 10:37:21 +00:00
Andrew Tridgell
dd9b2f3b2f it turns out that XP agrees with the samba head branch over the right
error codes for locking, so fix the test rather than fixing samba
(This used to be commit a583af3c2f)
2001-09-06 01:21:09 +00:00
Andrew Tridgell
cefa698c72 fixed compilation of torture
(This used to be commit aaf538a830)
2001-09-04 11:52:42 +00:00
Andrew Tridgell
b031af348c converted another bunch of stuff to NTSTATUS
(This used to be commit 1d36250e33)
2001-08-27 19:46:22 +00:00
Andrew Tridgell
05c0ca2355 forgot to commit the scanner code
(This used to be commit 591308f388)
2001-08-27 18:01:05 +00:00
Andrew Tridgell
e8e98c9ea0 converted smbd to use NTSTATUS by default
major changes include:

- added NSTATUS type
- added automatic mapping between dos and nt error codes
- changed all ERROR() calls to ERROR_DOS() and many to ERROR_NT()
  these calls auto-translate to the client error code system
- got rid of the cached error code and the writebmpx code

We eventually will need to also:
- get rid of BOOL, so we don't lose error info
- replace all ERROR_DOS() calls with ERROR_NT() calls

but that is too much for one night
(This used to be commit 83d9896c1e)
2001-08-27 08:19:43 +00:00
Andrew Tridgell
464237cdb8 fixed handling of 139/445 in clients
(This used to be commit 22b372f8a7)
2001-08-24 20:11:09 +00:00
Andrew Tridgell
b34d17e498 tests for 0 length locks
(This used to be commit 8fbd1d0f97)
2001-08-24 19:34:11 +00:00
Andrew Tridgell
98e407a021 allow for 0 range locks in locktest
(This used to be commit c3b2d959a7)
2001-08-24 04:57:13 +00:00
Andrew Tridgell
c50da047a1 more minor torture updates
(This used to be commit 6513b94d19)
2001-08-23 23:16:42 +00:00
Andrew Tridgell
9e21abd314 the beginnings of a TRANS2 scanner
(This used to be commit 9c483987a5)
2001-08-23 16:24:29 +00:00
Andrew Tridgell
d81e123998 minor bug fixes to smbtorture
(This used to be commit 7724243fe7)
2001-08-22 03:15:33 +00:00
Andrew Tridgell
11ce0f4d2d a bunch of fixes from the sflight to seattle
in particular:
 - fixed NT status code for a bunch of ops
 - fixed handling of protocol levels in ms_fnmatch
(This used to be commit 3eba9606f7)
2001-08-20 05:15:26 +00:00
Tim Potter
e7630562c9 Converted to new error API.
Now that we support NT errors from the client, appropriate values will need
to be filled in for the various invocations of check_error() within the
torture code.
(This used to be commit 577f6065f6)
2001-08-13 04:08:42 +00:00
Andrew Bartlett
cd41846aa5 Update smbtorture in line with SAMBA_2_2
Andrew Bartlett
(This used to be commit dc588ee87a)
2001-07-07 06:21:32 +00:00
Andrew Tridgell
6668abac5e fixed compilation of masktest on AIX
(This used to be commit 832a91bbe6)
2001-07-05 05:53:08 +00:00
Andrew Tridgell
527e824293 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn.
(This used to be commit c41fc06376)
2001-07-04 07:36:09 +00:00
Andrew Tridgell
87fbb7092b The big character set handling changeover!
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 debb471267)
2001-07-04 07:15:53 +00:00
Andrew Bartlett
983d841e36 See if we can stick to slightly valid C..
(With thanks to tpot)

Andrew Bartlett
(This used to be commit e77cfe1379)
2001-07-03 04:29:50 +00:00
Andrew Bartlett
d2af8d03ab Not all OSs have setbuffer, so we better check for it.
Andrew Bartlett
(This used to be commit aa5708de69)
2001-07-02 04:47:55 +00:00
Andrew Bartlett
be242703e1 Make smbtorture return status values for use in the build_farm tests.
This should not have changed behaviour, and it has been tested.

Andrew Bartlett
(This used to be commit a73aefef09)
2001-07-02 03:21:17 +00:00
Jeremy Allison
064b4904f9 Ensure we return correct error on trying to unlock a region not locked.
Jeremy.
(This used to be commit 015a077acc)
2001-06-30 03:11:44 +00:00
Jeremy Allison
850a0e27e1 Extra debug in open.c, fix for bad debug message in reply.c
Jeremy.
(This used to be commit 2c2fc85136)
2001-06-19 07:31:55 +00:00
Andrew Tridgell
32ce168a3f added a torture target for building all torture progs. Fixed a typo in locktest
(This used to be commit fd0d729ce0)
2001-06-19 02:06:12 +00:00
Andrew Tridgell
ffb63e4f8e moved all our torture code to a separate directory
(This used to be commit dd12c47645)
2001-06-19 02:02:19 +00:00