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

231 Commits

Author SHA1 Message Date
Jelmer Vernooij
dfc517b053 r13658: More moving around of files:
- Collect the generic utility functions into a lib/util/ (a la GLib is
		for the GNOME folks)
 - Remove even more files from include/
(This used to be commit ba62880f5b05c2a505dc7f54676b231197a7e707)
2007-10-10 13:52:05 -05:00
Stefan Metzmacher
a920f2f9a8 r13004: fix compiler warnings
metze
(This used to be commit 833efdf8a943b210ba8e5b219dc754260001bedb)
2007-10-10 13:51:16 -05:00
Volker Lendecke
1971eebb10 r12765: Revert an accidential commit
(This used to be commit d96c84126dcc1ec97e39814f21de167528fe886f)
2007-10-10 13:49:51 -05:00
Volker Lendecke
53091bf83e r12764: Add a test for lsa_lookup. This will be expanded when I get around to add
trusted domains.

Volker
(This used to be commit 8b8bb85ad365721bfa1cf5309d53d851f2013c22)
2007-10-10 13:49:51 -05:00
Jelmer Vernooij
78c50015bb r12694: Move some headers to the directory of the subsystem they belong to.
(This used to be commit c722f665c90103f3ed57621c460e32ad33e7a8a3)
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
25bb00fbcd r12693: Move core data structures out of smb.h into core.h
torture prototypes in seperate header
(This used to be commit 73610639b23ca3743077193fa0b1de7c7f65944d)
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
d4de4c2d21 r12608: Remove some unused #include lines.
(This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
2007-10-10 13:49:03 -05:00
Andrew Tridgell
5e117701b4 r12549: fixed the problem with serialisation and the RAW-OPLOCK test
(This used to be commit ad3b8286636f4101fa6528cb447aeeb7ee7507a4)
2007-10-10 13:47:56 -05:00
Jelmer Vernooij
2cd5ca7d25 r12542: Move some more prototypes out to seperate headers
(This used to be commit 0aca5fd5130d980d07398f3291d294202aefe3c2)
2007-10-10 13:47:55 -05:00
Andrew Tridgell
042a9958c8 r11639: fixed some create_time tests that should be change_time tests
(This used to be commit c4266c7f688145a9b7da8977aff7fb972b7d0aa4)
2007-10-10 13:46:04 -05:00
Andrew Tridgell
498b2892dd r11638: fixed handling of null volume name in RAW-QFSINFO test
thanks to Stephen Zarkos for finding this
(This used to be commit 8331eee64cb679c091ca46cc001ff9851eb91f0e)
2007-10-10 13:46:04 -05:00
Andrew Tridgell
655138602c r10912: added a test for supporting batch oplock upgrades
(This used to be commit 1183af06b70a06ef7a1af665567560e9158fc960)
2007-10-10 13:39:41 -05:00
Stefan Metzmacher
ab4d635b92 r10504: - seperate implementation specific stuff, from the generic composite
stuff.
- don't use SMBCLI_REQUEST_* state's in the genreic composite stuff
- move monitor_fn to libnet.

NOTE: I have maybe found some bugs, in code that is dirrectly in DONE or ERROR
      state in the _send() function. I haven't fixed this bugs in this
      commit! We may need some composite_trigger_*() functions or so.
      And maybe some other generic helper functions...

metze
(This used to be commit 4527815a0a9b96e460f301cb1f0c0b3964c166fc)
2007-10-10 13:38:57 -05:00
Tim Potter
8dbeab5cd2 r10257: strlen returns a size_t which can be 64 bits long.
(This used to be commit 4a4b0537183e16b00a94f0411e423c943d79cba9)
2007-10-10 13:38:12 -05:00
Jeremy Allison
0ac1490a89 r10132: Confirm that openX with OPEN_EXEC implies read only.
Jeremy.
(This used to be commit da70b2ab2df6d8239811b12b471c578cbff6dca8)
2007-10-10 13:38:01 -05:00
Tim Potter
9a56cb39b3 r9876: Fix some 64-bit warnings for Itanium machine.
(This used to be commit 9e375d82e828879704442e5a27a9938015953de2)
2007-10-10 13:36:19 -05:00
Jelmer Vernooij
b674411eb4 r9792: Rename StrCaseCmp -> strcasecmp_m. All these years I was thinking
StrCaseCmp was sys_strcasecmp, while it is in fact strcasecmp_m!
(This used to be commit 200a8f6652cb2de7a8037a7a4c2a204b50aee2b1)
2007-10-10 13:35:01 -05:00
Volker Lendecke
11f4803d00 r9584: Fix a race condition in Samba 3. If two files are opened simultaneously with
NTCREATEX_DISP_CREATE (create if not exists, else fail) they might end up with
two or more times NT_STATUS_OK as EEXIST is not correctly handled.

Jeremy, please look closely at this. You can easily verify this by adding a
smb_msleep(100) to the top of open_file_ntcreate and run the new samba4
torture test. It does also happen without the msleep, but not as reliably.

Thanks,

Volker
(This used to be commit c803d4c9a588e39a90ddfe900be9b9de1a861f82)
2007-10-10 13:34:32 -05:00
Tim Potter
2fa50ab671 r9222: Rename smb_tree_connect() to smb_raw_tcon() to match other raw function
names.
(This used to be commit 26b191b3c9529b2dae5d004819dab46657064408)
2007-10-10 13:31:33 -05:00
Andrew Tridgell
c3ee5d6f75 r9121: use the older non-passthru level for setting delete on close
disposition in the RAW-UNLINK test (this allows it to work with netapp
servers)
(This used to be commit 4f9cfd10bf92e5abf3c09bb0bf6cca3dfc3b6dfb)
2007-10-10 13:31:18 -05:00
Andrew Tridgell
d07f01b203 r9046: fixed display of privileges in RAW-ACLS test
(This used to be commit 0ab907af6a4c3d1adbafccdb1bd4150c491bcba4)
2007-10-10 13:31:11 -05:00
Andrew Tridgell
89cbdf8ed0 r9045: be friendly towards servers that don't understand the 'share' form for tconx, instead of the \\server\share
form
(This used to be commit 02a78d06e1018087859c9ec65b792b1ffcfd3981)
2007-10-10 13:31:11 -05:00
Andrew Tridgell
177423e88c r9044: added a comment so you can see what this test does :-)
(This used to be commit ee2744160892f28390662f4934dc4135e4378d78)
2007-10-10 13:31:11 -05:00
Andrew Tridgell
089fa95704 r9043: fixed return code in RAW-STREAMS test
(This used to be commit 45e41010da19cafc9d50369c2d311a42e5172eb7)
2007-10-10 13:31:10 -05:00
Andrew Tridgell
8a0b044d20 r9042: fixed the valgrind error in the RAW-SFILEINFO test
(This used to be commit eaf079e33f3e2d933b7310cf076d572b6988cbb4)
2007-10-10 13:31:10 -05:00
Andrew Tridgell
8d5f642ee1 r9008: check the return status for the directory handle creations
(This used to be commit 57e44300f73bbf190a0282925591b7dd1dfc2b6b)
2007-10-10 13:31:06 -05:00
Andrew Tridgell
d4c4f16f94 r9006: expanded RAW-UNLINK test to test directory delete on close with non-empty directory,
as per discussions during jeremys talk at cifs2005
(This used to be commit b28b2108c7f3e94fb47a706fb1d550354074730d)
2007-10-10 13:31:06 -05:00
Andrew Tridgell
7937a353db r9003: add testing for non-empty directory delete on close
(This used to be commit caca1f191d23ef848d3c8da76e8a0e80a06dacef)
2007-10-10 13:31:06 -05:00
Andrew Tridgell
5f0c8df55a r8773: fixed another dependency on directory ordering in RAW-SEARCH
Thanks to andrew bartlett for helping to track this down (his was the
only system that hit this)
(This used to be commit 5edeb56bf0c86dae9cd9fe9275d1e37aedc05503)
2007-10-10 13:30:03 -05:00
Andrew Tridgell
6b2d6ce604 r8729: make the RAW-SEARCH test more robust to servers with hash based directory ordering
(This used to be commit 8c4d0cd7b7063116ab08545dbe5f23390c7973c4)
2007-10-10 13:29:59 -05:00
Andrew Tridgell
2c457eca25 r8712: cleanup old search test code to use talloc
(This used to be commit 1d830bcd473a2166b6f89281faabb001697e35d4)
2007-10-10 13:29:57 -05:00
Andrew Tridgell
92a6cd373a r8709: fixed the assumption in RAW-SEARCH that directories are returned in sorted order
(This used to be commit 92afff5fe7134872f12c25628d047b2a92e92a37)
2007-10-10 13:29:56 -05:00
Andrew Tridgell
a4428c814a r8634: we are still getting occasional test failures due to disk space
changing. I suspect it is a signed/unsigned problem with the approx
equal test. Hopefully this will fix it.
(This used to be commit 668dd29259198698c556c50e28a9070085db89ea)
2007-10-10 13:29:47 -05:00
Andrew Tridgell
8e824d4d04 r8537: cope better with the small file handle limit on some systems in the build farm
(This used to be commit 6202a9d099619a0ba78809647039cbc7622f1d3d)
2007-10-10 13:29:36 -05:00
Andrew Tridgell
9953452d49 r8522: fixed another couple of size_t warnings
(This used to be commit d2c928548336682ffd3dda873f9957f3d041f0af)
2007-10-10 13:29:34 -05:00
Andrew Tridgell
e835621799 r8520: fixed a pile of warnings from the build farm gcc -Wall output on
S390. This is an attempt to avoid the panic we're seeing in the
automatic builds.

The main fixes are:

 - assumptions that sizeof(size_t) == sizeof(int), mostly in printf formats

 - use of NULL format statements to perform dn searches.

 - assumption that sizeof() returns an int
(This used to be commit a58ea6b3854973b694d2b1e22323ed7eb00e3a3f)
2007-10-10 13:29:34 -05:00
Andrew Tridgell
a2a838d72c r8497: prevent a fd leak in RAW-SEARCH test
(This used to be commit efb151ba797a5473316ca2dc9ec7f40fead9dab2)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
060113de98 r8495: allow for up 10% change in allocated disk space during QFSINFO tests
(This used to be commit 16d752b55189780a038aed1d54ef28201a9859a4)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
fc56396261 r8494: fixed a bug in RAW-SFILEINFO that caused inconsistent results on different platforms
(This used to be commit 9264555541a0e251730010a75d063f56971249a2)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
bcec34683d r8491: lower the offset limit that filesystems need to support to pass RAW-WRITE to 2^33
(This used to be commit e499b1abaeee00366ccd2e5b1acbe18d48e77466)
2007-10-10 13:23:09 -05:00
Volker Lendecke
8e05fc188e r8229: A level2 oplock does not conflict a no-oplock open, but is broken on first
write. Test that.

Volker
(This used to be commit 2ad02d5e09ca00ca998e363b535b16af45c82a5f)
2007-10-10 13:19:22 -05:00
Volker Lendecke
824f5b4781 r8185: Delete on close on directories:
Creating a file in a directory with delete-on-close set returns
DELETE_PENDING, and trying to set the flag on a non-empty directory returns
DIRECTORY_NOT_EMPTY.

Volker
(This used to be commit 5680f34778b2f5291936f4d4fb937a7713696c52)
2007-10-10 13:19:18 -05:00
Volker Lendecke
44b66a73d3 r8176: Exploring the share mode database...
A delete-on-close deleted file is still around while open on another fd. But
only for findfirst, not for qpathinfo :-)

Volker
(This used to be commit dbc7a1a978d782c73f593f4b46f2a81d35169713)
2007-10-10 13:19:17 -05:00
Jeremy Allison
3de3d6a02d r8174: Check DOS error codes in torture chkpath test.
Jeremy.
(This used to be commit ff58ecad044dc7a3cdb4c010ea5cc1ea5e2e4b3b)
2007-10-10 13:19:17 -05:00
Andrew Tridgell
6667788706 r8123: fixed the RAW-NOTIFY and RAW-QFSINFO tests against w2k3
(This used to be commit acd9fad3a4c578e20cd4bdb79a000a7ff70f680c)
2007-10-10 13:19:11 -05:00
Andrew Tridgell
a703329908 r8122: more fixes from testing dos error code handling against w2k3
(This used to be commit b71fbcf5e2c627d918aef555b8cc8dd4591d8fe7)
2007-10-10 13:19:11 -05:00
Andrew Tridgell
19f2cd199f r8118: remove a debugging hack that should not have been in the last commit
(This used to be commit 0f76449a08955cfe50178b6accfd631d7cf42da3)
2007-10-10 13:19:10 -05:00
Andrew Tridgell
fee56ea900 r8117: fixed a bunch more dos error code handing.
The biggest change was fixing the RAW-CONTEXT test. It was forcing
capabilities to zero in an attempt to not negotiated extended
security, but as a side effect it was forcing negotiation of dos error
codes. This confused the hell out of the test code!

Also fixed a bunch of places incorrectly using NT_STATUS_V() instead
of NT_STATUS_EQUAL() and several places that had the wrong dos status
codes
(This used to be commit 0b22744f40804a0d6dc94bfc40ec09306f584f7e)
2007-10-10 13:19:10 -05:00
Andrew Tridgell
74942e1a11 r8107: now that we properly separate DOS and NT status codes all the places
that relied on the mapping need to be fixed. The first thing is to get
all the torture tests working against w2k3 again with nt status codes
enabled. The 2nd step will be to make them pass with nt status
disabled.

This starts on the first task, fixing the assumption that
NT_STATUS_INVALID_LOCK_SEQUENCE is a valid substitute for
ERRDOS:ERRbadaccess
(This used to be commit 87cdd117081193d215c5a9e3603438e058ad777b)
2007-10-10 13:19:08 -05:00
Andrew Tridgell
e0d521ca79 r8104: - added support for our client library to not negotiate nt status codes, controlled
with 'nt status support' option.

- make nt_errstr() display nice strings for dos status codes encoded
  using NT_STATUS_DOS()

- no longer map between dos and nt status codes in the client library,
  instead return using NT_STATUS_DOS()

- fixed the RAW-CONTEXT test to look for
  NT_STATUS_DOS(ERRSRV, ERRbaduid) instead of NT_STATUS_INVALID_HANDLE
(This used to be commit ff5549e87ffae9f062394f30d8fd1ae95b614735)
2007-10-10 13:19:08 -05:00