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

53 Commits

Author SHA1 Message Date
Jeremy Allison
e2c84f67a3 Change RAW-STREAMS for s3 to allow rename over an existing stream,
we need to file a CAR to find out why Windows gives INVALID_PARAMETER
for this.
Jeremy.
2009-10-29 16:38:34 -07:00
Andrew Tridgell
9ae4daeb96 s4-torture: fixed the streams tests for Samba4
In some cases we were not doing streams tests on s4 that we should. In
others, we were calling tests that are known to fail on s4. Some of
those are a bit puzzling.
2009-10-18 15:06:13 +11:00
Andrew Tridgell
3c028ff88b s4-smb: declare root_fid as a file handle
In order to implement root_fid in the s4 SMB server we need to declare
it as a handle type, just as for other fnum values in SMB. This
required some extensive (but simple) changes in many bits of code.
2009-10-15 20:03:00 +11:00
Tim Prouty
ad96c11182 s4 torture: Fix RAW-STREAMS to request more specific permissions
This allows RAW-STREAMS to pass when the user isn't root on some
systems that don't give full access rights to non-root users.
2009-09-24 10:59:33 -07:00
Tim Prouty
f92140b716 s4 torture: Remove unused parameter 2009-04-01 20:02:31 -07:00
Jeremy Allison
9569d979de And the prize for the most pain caused in the build farm for a simple
typo goes to.....
Tim Prouty !!!!
Sorry Tim, nice test but you made a typo in passing in
the size of an array so we were reading uninitialized
memory :-).
That took far longer than it should have to track down...
(%$&#ing build system....).
The build farm should now slowly go back to normal.
Jeremy.
2009-02-27 20:57:49 -08:00
Jeremy Allison
cde5724780 Added torture test from a usage case from the Apple OS/X client.
Setting an attribute on a stream fnum must change the attribute
on the base file.
Jeremy.
2009-02-24 17:32:22 -08:00
Tim Prouty
6bac890533 s4 torture: Add new test to create a file with a lot of streams
This tests how streaminfo deals with large buffers

smbclient seems to have problems when the buffer size approaches the
max data size.  Also smbclient exposes no way to specify the max data
size that is sent in a trans2 request.  Instead it hardcodes in a much
larger max than windows uses.  For these reasons this test isn't
actually run, but is more of a reference for how windows handles
streaminfo buffers.
2009-02-18 23:48:35 -08:00
Tim Prouty
7a2c4acf86 s4 torture: Add additional streams create disposition test 2009-02-18 23:48:35 -08:00
Tim Prouty
a65f1b9655 s4 torture: Add new create disposition test to RAW-STREAMS 2009-01-09 11:45:31 -08:00
Andrew Tridgell
c81863e868 added support for stream renames in Samba4
This allows the RAW-STREAMS test to work again. We still have some
limitations though:

  - renames of a stream to the default stream doesn't work
  - delete on close handling between streams and the main file 
    is still broken
2009-01-07 16:46:34 +11:00
Tim Prouty
2ddaebb2e1 s4 torture: Add more rename tests to RAW-STREAMS
There is one part of the new rename tests that passes against windows,
but doesn't pass against samba3 right now.  Windows allow renaming a
stream to the default stream, but none of the current streams module
support this.  When this ability is added the check for samba can be
removed from this test.

This patch also adds a missing unlink in the cleanup of
test_stream_delete and changes the order that the tests are run to be
consistent with the physical order in the file.
2009-01-04 19:31:30 -08:00
Jeremy Allison
f1389a3950 Make it clearer when RAW-STREAMS is failing (don't always print names).
Jeremy.
2008-12-22 11:58:38 -08:00
Jeremy Allison
fcadf47a15 Add torture test for bug #5986 - streams rename, so we don't regress.
Jeremy.
2008-12-19 18:01:26 -08:00
Stefan Metzmacher
db369b5567 RAW-STREAMS: test stream renames
metze
2008-12-01 14:45:06 -08:00
Stefan Metzmacher
540e6376cc RAW-STREAMS: some more tests...
metze
2008-12-01 14:44:42 -08:00
Stefan Metzmacher
87bb9e178f RAW-STREAMS: test valid character in the range of 0x01 => 0x7F
metze
2008-12-01 14:43:58 -08:00
Stefan Metzmacher
b25d69e3a8 RAW-STREAMS: check some strange stream name combinations
metze
2008-12-01 14:43:23 -08:00
Stefan Metzmacher
2f653e814a RAW-STREAMS: better test the bahavior of streams on directories
Note: this has a samba3 specific code path, which we should fixed.

metze
(This used to be commit 5c5c866838)
2008-05-23 09:55:16 +02:00
Stefan Metzmacher
2801b6a522 RAW-STREAMS: do a exit on the session after each sub tests
metze
(This used to be commit 3f7fef8b8c)
2008-03-12 14:23:30 +01:00
Stefan Metzmacher
6e9d25157d RAW-STREAMS: do what the comments say
metze
(This used to be commit eb68a8ed4f)
2008-03-12 14:23:30 +01:00
Volker Lendecke
66871f9950 Add an exception for S3
Doing this correctly would involve a create_file call for qpathinfo
(This used to be commit da9a5b571e)
2008-01-20 15:55:33 +01:00
Volker Lendecke
0c5443cbe5 r26184: Streams are tricky....
(This used to be commit f8c4a5ccc6)
2007-12-21 05:46:38 +01:00
Volker Lendecke
f6d91ea2e2 r26104: Revert 26103 -- breaks make test
(This used to be commit d1a220aee3)
2007-12-21 05:46:05 +01:00
Volker Lendecke
d588d3e3ad r26103: Leave streams around to unlink
Add test case for stream name case insensitity
(This used to be commit d81bb50e10)
2007-12-21 05:46:04 +01:00
Volker Lendecke
39dec5ee66 r26029: In RAW-STREAMS test listing of streams
(This used to be commit 8dbe10be30)
2007-12-21 05:45:46 +01:00
Jelmer Vernooij
2151cde580 r25554: Convert last instances of BOOL, True and False to the standard types.
(This used to be commit 566aa14139)
2007-10-10 15:07:55 -05:00
Jelmer Vernooij
98b57d5eb6 r25035: Fix some more warnings, use service pointer rather than service number in more places.
(This used to be commit df9cebcb97)
2007-10-10 15:05:43 -05:00
Jelmer Vernooij
cd962355ab r25000: Fix some more C++ compatibility warnings.
(This used to be commit 08bb1ef643)
2007-10-10 15:05:27 -05:00
Jelmer Vernooij
919aa6b27e r24735: Use torture API in more places.
(This used to be commit 1319d88c09)
2007-10-10 15:03:00 -05:00
Andrew Tridgell
0479a2f1cb r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac)
2007-10-10 14:59:12 -05:00
Volker Lendecke
b7c5bc522b r16907: Add an index parameter to torture_open_connection. Next step is to enable the
unclist parameter for all tests that do two connections, to enable cluster
testing.

Volker
(This used to be commit a5d6db0924)
2007-10-10 14:09:58 -05:00
Jelmer Vernooij
909b111f58 r14720: Add torture_context argument to all torture tests
(This used to be commit 3c7a5ce291)
2007-10-10 13:59:13 -05:00
Jelmer Vernooij
d09b70c98b r14527: Fix build problems.
(This used to be commit 863ca4014d)
2007-10-10 13:57:37 -05:00
Stefan Metzmacher
a1b295ed48 r14256: - rename smb_file -> smb_handle
- move it into the in/out substructs again
- allow file.path only on smb_fileinfo/smb_setfileinfo

metze
(This used to be commit be6d5298a2)
2007-10-10 13:57:06 -05:00
Stefan Metzmacher
307e43bb56 r14173: change smb interface structures to always use
a union smb_file, to abtract
- const char *path fot qpathinfo and setpathinfo
- uint16_t fnum for SMB
- smb2_handle handle for SMB2

the idea is to later add a struct ntvfs_handle *ntvfs
so that the ntvfs subsystem don't need to know the difference between SMB and SMB2

metze
(This used to be commit 2ef3f59709)
2007-10-10 13:56:57 -05:00
Jelmer Vernooij
78c50015bb r12694: Move some headers to the directory of the subsystem they belong to.
(This used to be commit c722f665c9)
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 73610639b2)
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
d4de4c2d21 r12608: Remove some unused #include lines.
(This used to be commit 70e7449318)
2007-10-10 13:49:03 -05:00
Tim Potter
8dbeab5cd2 r10257: strlen returns a size_t which can be 64 bits long.
(This used to be commit 4a4b053718)
2007-10-10 13:38:12 -05:00
Andrew Tridgell
089fa95704 r9043: fixed return code in RAW-STREAMS test
(This used to be commit 45e41010da)
2007-10-10 13:31:10 -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 a58ea6b385)
2007-10-10 13:29:34 -05:00
Andrew Tridgell
e82aad1ce3 r5298: - got rid of pstring.h from includes.h. This at least makes it a bit
less likely that anyone will use pstring for new code

 - got rid of winbind_client.h from includes.h. This one triggered a
   huge change, as winbind_client.h was including system/filesys.h and
   defining the old uint32 and uint16 types, as well as its own
   pstring and fstring.
(This used to be commit 9db6c79e90)
2007-10-10 13:09:38 -05:00
Andrew Tridgell
759da3b915 r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the
large commit. I thought this was worthwhile to get done for
consistency.
(This used to be commit ec32b22ed5)
2007-10-10 13:09:15 -05:00
Andrew Tridgell
ddc10d4d37 r4549: got rid of a lot more uses of plain talloc(), instead using
talloc_size() or talloc_array_p() where appropriate.

also fixed a memory leak in pvfs_copy_file() (failed to free a memory
context)
(This used to be commit 89b74b5354)
2007-10-10 13:08:25 -05:00
Stefan Metzmacher
9112a632f6 r4063: - change char * -> uint8_t in struct request_buffer
- change smbcli_read/write to take void * for the buffers to match read(2)/write(2)

all this fixes a lot of gcc-4 warnings

metze
(This used to be commit b94f92bc66)
2007-10-10 13:06:21 -05:00
Andrew Tridgell
4183b2ac38 r4037: fixed a bunch of "might be uninitialised" warnings after enabling -O1 in my compile
(This used to be commit 0928b1f5b6)
2007-10-10 13:06:16 -05:00
Andrew Tridgell
cc8f4358cc r4035: more effort on consistent naming of the access mask bits.
This removes the duplicate named SEC_RIGHTS_MAXIMUM_ALLOWED and
SEC_RIGHTS_FULL_CONTROL, which are just other names for
SEC_FLAG_MAXIMUM_ALLOWED and SEC_RIGHTS_FILE_ALL. The latter names
match the new naming conventions in security.idl

Also added names for the generic->specific mappings for files are
directories
(This used to be commit 17a4e0b3ac)
2007-10-10 13:06:16 -05:00
Andrew Tridgell
fdc9f417d8 r4011: get rid of rpc_secdes.h and replace it with a single sane set of
definitions for security access masks, in security.idl

The previous definitions were inconsistently named, and contained many
duplicate and misleading entries. I kept finding myself tripping up
while using them.
(This used to be commit 01c0fa722f)
2007-10-10 13:06:13 -05:00
Andrew Tridgell
856f663adc r3800: - fixed delete-on-close behaviour for streams
- added a delete-on-close test to RAW-STREAMS

- don't allow rename of streams at the moment (I need to work out if
  its supposed to be allowed first)
(This used to be commit f4b2b1311d)
2007-10-10 13:05:55 -05:00