1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

37 Commits

Author SHA1 Message Date
Andrew Tridgell
5296b20ad8 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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
ab7f67677a first step in converting the head branch to use lang_tdb.c instead
of gettext for internationalisation support. There is more to do
0001-01-01 00:00:00 +00:00
Andrew Tridgell
1c221994f1 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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
b97fbfcd7c 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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
441f9415b3 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.
0001-01-01 00:00:00 +00:00
Tim Potter
2d0922b0ea Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
eb668b54af 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.
0001-01-01 00:00:00 +00:00
Simo Sorce
fc71962409 move to SAFE_FREE() 0001-01-01 00:00:00 +00:00
Andrew Tridgell
2d507ec669 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 0001-01-01 00:00:00 +00:00
Andrew Bartlett
0ff0a91a6b Fix (I hope) for a number of little compile warnings found by the IRIX
compilers on the build farm.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Tridgell
f41c3bb80f declare dbf in one spot 0001-01-01 00:00:00 +00:00
Andrew Tridgell
1af8bf34f1 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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
9341e5534d - fixed proto.h build on systems using a parallel make
- changed DENY1 and DENY2 tests to only report errors
0001-01-01 00:00:00 +00:00
Andrew Tridgell
a583af3c2f 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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
aaf538a830 fixed compilation of torture 0001-01-01 00:00:00 +00:00
Andrew Tridgell
1d36250e33 converted another bunch of stuff to NTSTATUS 0001-01-01 00:00:00 +00:00
Andrew Tridgell
591308f388 forgot to commit the scanner code 0001-01-01 00:00:00 +00:00
Andrew Tridgell
83d9896c1e 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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
22b372f8a7 fixed handling of 139/445 in clients 0001-01-01 00:00:00 +00:00
Andrew Tridgell
8fbd1d0f97 tests for 0 length locks 0001-01-01 00:00:00 +00:00
Andrew Tridgell
c3b2d959a7 allow for 0 range locks in locktest 0001-01-01 00:00:00 +00:00
Andrew Tridgell
6513b94d19 more minor torture updates 0001-01-01 00:00:00 +00:00
Andrew Tridgell
9c483987a5 the beginnings of a TRANS2 scanner 0001-01-01 00:00:00 +00:00
Andrew Tridgell
7724243fe7 minor bug fixes to smbtorture 0001-01-01 00:00:00 +00:00
Andrew Tridgell
3eba9606f7 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
0001-01-01 00:00:00 +00:00
Tim Potter
577f6065f6 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.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
dc588ee87a Update smbtorture in line with SAMBA_2_2
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Tridgell
832a91bbe6 fixed compilation of masktest on AIX 0001-01-01 00:00:00 +00:00
Andrew Tridgell
c41fc06376 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
debb471267 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.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
e77cfe1379 See if we can stick to slightly valid C..
(With thanks to tpot)

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
aa5708de69 Not all OSs have setbuffer, so we better check for it.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
a73aefef09 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
0001-01-01 00:00:00 +00:00
Jeremy Allison
015a077acc Ensure we return correct error on trying to unlock a region not locked.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
2c2fc85136 Extra debug in open.c, fix for bad debug message in reply.c
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
fd0d729ce0 added a torture target for building all torture progs. Fixed a typo in locktest 0001-01-01 00:00:00 +00:00
Andrew Tridgell
dd12c47645 moved all our torture code to a separate directory 0001-01-01 00:00:00 +00:00