1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-05 12:23:50 +03:00
Commit Graph

304 Commits

Author SHA1 Message Date
Andrew Tridgell
ee4f6335ad fixed bugs in fdpass tests -
Andrew Tridgell
d9322d01e0 move srandom to after connect so random stuff in clientgen doesn't
change seed
-
Andrew Tridgell
4d00314ec5 minor fixes -
Luke Leighton
26f51a7abb 2nd evil simultaneous read-write test. forks. one writer. others
are readers.  writes between 1 and 20 bytes.  reads as much as possible.
compares.  repeat until end of buffer (fixed size: 131072 bytes) reached.
-
Andrew Tridgell
289d3cac38 we don't do "revalidate = yes" any more -
Andrew Tridgell
fc8c460a61 added -u hide_unlock_fails option -
Andrew Tridgell
a92f8c8620 use \\ in front of filenames -
Andrew Tridgell
5fd4dbf72e use lp_workgroup()
use \\ in front of filenames
get short name via a separate trans2 level 260 call
-
Andrew Tridgell
9c64f47c16 use lp_workgroup()
use \\ in front of filenames
-
Luke Leighton
0a993f3783 torture test:
same cli_state:
open file rw/denynone, open *same* file r/denynone.
write to file (fd1) read from file (fd2).  compare.  repeat.

two cli_states:
open file rw/denynone (cli1), open *same* file r/denynone (cli2).
write to file (fd1) read from file (fd2).  compare.  repeat.
-
Tim Potter
fcb8e2fbe2 Added -W workgroup command line option.
Added call to codepage_initialise().
-
Andrew Tridgell
88ad00b82a added secrets.tdb and changed storage of trust account password to use
it
-
Andrew Tridgell
0ce2ca5ccd signed/unsigned fixes so we can handle a lock base close to 2^32 -
Andrew Tridgell
c14a261644 make debug easier to read -
Andrew Tridgell
d64bb07f0a make debug easier to read -
Andrew Tridgell
efc9752f1e nasty hack to print posix locks -
Andrew Tridgell
b3999f3b20 example of broken posix lock behaviour -
Jeremy Allison
e8ff6d3fb5 rpc_server/srv_lsa.c: Bring into sync with 2.0.x.
rpc_server/srv_pipe_hnd.c: Bring into sync with 2.0.x.
smbd/blocking.c: Improve blocking debug reporting.
utils/torture.c: Added check for NT locking bug.
Jeremy.
-
Andrew Tridgell
98ad4095cc parameterize the lock timeout -
Andrew Tridgell
7cfd45cc56 added a test for the NT byte range lock into smbtorture -
Andrew Tridgell
0b335e4158 an even simpler example of NT gettings its locking code wrong. This
one doesn't even need two connections to the box, just two file handles.

it is a very simple case actually, and one I think will happen quite a
lot in real life. I wonder how they haven't noticed it? I checked and
W2K has the same bug.
-
Andrew Tridgell
89e7199445 need LOCKING_OBJ in locktest now -
Andrew Tridgell
85b5dc64cf more locktest improvements
the current preset tests show a very interesting NT bug - it sometimes
refuses a lock that it shouldn't.
-
Andrew Tridgell
99e522023e fixed message text -
Andrew Tridgell
0beee59432 added -A analyze mode to locktest - it can now automatically prune
the list of locks that cause a failure
-
Andrew Tridgell
b703cecf81 found a much simpler case that kills the posix locking -
Andrew Tridgell
43fe5b98b4 fixed a uninit memory read that insure found -
Andrew Tridgell
3fc6a467fc added ability to present lock tests -
Andrew Tridgell
a0a3931c6e improved the lock test program -
Andrew Tridgell
2f14d7c9bc added a nasty lock testing program
it opens 2 connections to each of 2 servers, and opens 2 fnums on the
same file on each connection (a total of 8 file descriptors)

then it does random lock/unlock/reopen requests in a 100 byte range on
the file and compares the results from the 2 servers.

strangely enough, NT fails this test against itself right now - I'm
still trying to figure that out.
-
Jeremy Allison
65399ae1f0 Added read overlay write lock on same fnum test to locktest2.
Added locktest5 for locking stacks.
Jeremy.
-
Jeremy Allison
3b25f7368b locking/posix.c: Fixed double-free nasty crash bug found by insure.
utils/make_smbcodepage.c:
utils/make_unicodemap.c: Insure 'make install' fixes.
Jeremy.
-
Andrew Tridgell
cdf4c4c812 handle the special rule of *.* for old style listings when old_list is
true
-
Andrew Tridgell
8a5c8cfa0e added cli_list_old() to allow for old style directory listing from
masktest
-
Andrew Tridgell
0e63b4b363 changed masktest to test the internal algorithm against one server,
rather than 2 servers
-
Andrew Tridgell
cc9e007cdf YIPEE!!!!!
We finally have a perfect emulation of Microsoft wildcard
matching. The routine ms_fnmatch() does wildcard matching with all MS
wildcards (including the unicode wildcards), and masktest against a
NT4 workstation with hundreds of thousands of random exmaples has not
found a single error.

amazingly it is only about 60 lines of code, but it has taken us years
to get it right. I didn't sleep much last night :)
-
Jeremy Allison
2746e5602e Fixed subtle unlocking bug when a file is closed. We need to store the
smbpid used when a file was opened in the files_struct. Else we use
the wrong global_smbpid when we are closing the file and trying to
remove the brl locks - this causes the brl locks to be left when the
file is closed as the samba_context check fails.
Jeremy.
-
Andrew Tridgell
2d37c1f98f quick hack to get smbtorture working again -
Andrew Tridgell
49865ea06c fixed a memory leak in nmblookup -
Andrew Tridgell
f007531742 load smb.conf and interfaces in masktest (to allow for netbios name
resolution)
-
Jeremy Allison
035272e6bc Fixed parsing issue with HP printer defs reported by HP.
Jeremy.
-
Luke Leighton
f8d3ce0419 added a tcon test: make two tconXs with the same user/pass, open a file
with one of them and try to write to the file with the other.
-
Jeremy Allison
54440428e5 Fixed smbpasswd crash bugs found by Giulio.
Jeremy.
-
Jeremy Allison
9f6ad04676 client/client.c:
libsmb/clientgen.c: Fixes for Win2k smbclient browsing.
Other fixes implement smbpasswd -x user to delete users. Also allows swat
to do the same.
Jeremy.
-
Jeremy Allison
b52e92b09d Added replacement functions sys_popen and sys_pclose. These are based
on the glibc source code and are safer than the traditional popen as
they don't use a shell to exec the requested command. Now we have
these functions they can be tightened up (environment etc.) as required
to make a safe popen. It should now be safe to add the environement
variable loading code to loadparm.c
Jeremy.
-
Andrew Tridgell
ef256de9d9 the beginnings of a fnmatch() based wildcard matching routine -
Andrew Tridgell
3609e835d4 update masktest for new make_nmb_name() syntax -
Andrew Tridgell
3f77690dad added masktest to head branch, in preparation for another assault on
the wildcard handling code
-
Luke Leighton
49d7f0afbc 1) added void* state argument to tdb_traverse. guess what! there were
two places i found where it was appropriate to _use_ that third argument,
in locking.c and brlock.c!  there was a static traverse_function and
i removed the static variable, typecast it to a void*, passed it to
tdb_traverse and re-cast it back to the traverse_function inside the
tdb_traverse function.  this makes the use of tdb_traverse() reentrant,
which is never going to happen, i know, i just don't like to see
statics lying about when there's no need for them.

as i had to do in samba-tng, all uses of tdb_traverse modified to take
the new void* state argument.

2) disabled rpcclient: referring people to use SAMBA_TNG rpcclient.
i don't know how the other samba team members would react if i deleted
rpcclient from cvs main.  damn, that code's so old, it's unreal.
20 rpcclient commands, instead of about 70 in SAMBA_TNG.
-
Andrew Tridgell
01d4c4784d renamed DENY to DENY1
added DENY2 test that checks all 648 deny combinations for the case
of two opens on the same connection
-