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

447 Commits

Author SHA1 Message Date
Stefan Metzmacher
bb158b74da r16871: zero padding bytes
(found by valgrind)

metze
(This used to be commit 283bec8295)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
f0f7070ad7 r16870: copy over the status from the ntvfs request to the smb2 request
so that smb2srv_setup_reply() doesn't push uninitialized data
(found by valgrind)

metze
(This used to be commit 1a1fd2747d)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
cf901ad491 r16869: - if we know the blob length, we can preallocated the memory
and avoid a realloc in smb2_push_*
- don't overwrite the first data byte

metze
(This used to be commit 7761a2a595)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
af0a9eb529 r16834: split the level's of smb_search_first/smb_search_next and the levels
of smb_search_data

metze
(This used to be commit 78c201db8a)
2007-10-10 14:09:49 -05:00
Stefan Metzmacher
fbf566b777 r16815: split out search levels which are also used by smb2
metze
(This used to be commit 3b8ecc19fa)
2007-10-10 14:09:47 -05:00
Stefan Metzmacher
21af3847a6 r16740: just say the directory is empty
metze
(This used to be commit 6326bb901f)
2007-10-10 14:09:43 -05:00
Stefan Metzmacher
dd44e2415c r16738: vista beta2 use FILE_CLOSED as error for an invalid file handle
metze
(This used to be commit fa35ddcaf9)
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
2400ebc428 r16735: vista beta2 reuses the tcp connect where it does the
SMB negprot

metze
(This used to be commit 3b2936a431)
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
6acd9aed93 r16734: the 2 bytes after the opcode and before the flags,
is no padding...

the following patch is needed for vista beta2 to connect to samba4

metze
(This used to be commit 58baae8fc4)
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
a18fc61d4f r16733: implement SMB2 SetInfo
metze
(This used to be commit 9b6f74778f)
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
b20c00f718 r16732: use the given macros
metze
(This used to be commit 6d5c74c38c)
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
2f60a2bc7a r16731: send a better error code, required for vista-beta2 client
metze
(This used to be commit a251e72206)
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
63d0c5a057 r16708: the packet format of SMB2 SessionSetup has changed,
there're 8 more unknown bytes...

Note:
 - vista-CTP also support this as a server,
   but uses the old format as client
 - but vista-beta2 only uses and accept the new format

metze
(This used to be commit b3bdd4afde)
2007-10-10 14:09:40 -05:00
Stefan Metzmacher
bd0dcebe36 r16705: fix a bug found by valgrind...
as we setup the 1 padding byte for non present dynamic part,
we need to overwrite it when we're getting a real dynamic part,
so we need to remove the buf->size +=1 when we do the first
push to the dynamic part (when buf->dynamic is still but->body + buf->body_fixed)

metze
(This used to be commit f309209629)
2007-10-10 14:09:39 -05:00
Stefan Metzmacher
d63dd113ae r16699: the layout of SMB2 Read and Write is identical...
so we know that the 9th bytes is just uninitialized padding

metze
(This used to be commit f97a21b970)
2007-10-10 14:09:39 -05:00
Stefan Metzmacher
4015b01088 r16671: allow usage of smbsrv_pull_passthru_sfileinfo() without,
a smbsrv_request given...

the RENAME level is not supported in this mode, but that will be fixed later

metze
(This used to be commit 058c6397a4)
2007-10-10 14:09:37 -05:00
Stefan Metzmacher
826597bfa8 r16670: try to match the vista error codes a bit more
metze
(This used to be commit 1a4978118d)
2007-10-10 14:09:37 -05:00
Stefan Metzmacher
bcc9e8af30 r16666: implement setting of security_descriptors via SMB2 SetInfo
metze
(This used to be commit 6908582f68)
2007-10-10 14:09:36 -05:00
Stefan Metzmacher
f8d8454461 r16621: split out passthru levels of setfileinfo
metze
(This used to be commit 6cd64cb78f)
2007-10-10 14:09:36 -05:00
Stefan Metzmacher
ca044dcd3a r16568: add parsing code for SMB2 SetInfo
metze
(This used to be commit 70cc992843)
2007-10-10 14:09:35 -05:00
Stefan Metzmacher
74fe06832a r16520: move smb2srv_break_recv back to fileio.c
metze
(This used to be commit cdee9b2168)
2007-10-10 14:09:31 -05:00
Stefan Metzmacher
98024a8125 r16467: implement SMB2 GetInfo server code
metze
(This used to be commit 49b5b3cd58)
2007-10-10 14:09:30 -05:00
Stefan Metzmacher
70eac2a274 r16466: for SMB2_ALL_EAS it's not valid for the ntvfs backends to return
0 eas, they should return an error:
NO_EAS_ON_FILE or NO_MORE_EAS

metze
(This used to be commit fdefec1de9)
2007-10-10 14:09:29 -05:00
Stefan Metzmacher
7bf085571e r16464: split client and server min/max protocol settings
metze
(This used to be commit 6164d1e22e)
2007-10-10 14:09:29 -05:00
Stefan Metzmacher
15de59549b r16457: fix typo
metze
(This used to be commit 049ddc8a96)
2007-10-10 14:09:16 -05:00
Stefan Metzmacher
74d58ab06f r16456: return on error...
metze
(This used to be commit 44ab067d14)
2007-10-10 14:09:16 -05:00
Stefan Metzmacher
2a3bcdb530 r16450: fix the build...
metze
(This used to be commit 316f3312d2)
2007-10-10 14:09:16 -05:00
Stefan Metzmacher
23803094e5 r16449: move some code to a generic place
metze
(This used to be commit 77a711c54a)
2007-10-10 14:09:15 -05:00
Stefan Metzmacher
47a78861bc r16448: add more error checks
metze
(This used to be commit d6d86c65bf)
2007-10-10 14:09:15 -05:00
Stefan Metzmacher
0f29d9fb3f r16444: - split out qfsinfo passthru levels
- use 1 to 1 mapping of interface and wire levels

metze
(This used to be commit e7d339d496)
2007-10-10 14:09:14 -05:00
Stefan Metzmacher
2d88ade182 r16443: add push code for SMB2 levels
metze
(This used to be commit 142680ab9b)
2007-10-10 14:09:14 -05:00
Stefan Metzmacher
1ff99ba12d r16440: split out passthru level into a new functions,
so they can we reused for smb2 later

metze
(This used to be commit 42324c1f63)
2007-10-10 14:09:14 -05:00
Stefan Metzmacher
f8dc3bbf9f r16410: remove some warnings of talloc_steal() usage without target
I only commit this as this is used in a global macro

tridge: we should try to get rid of this warning without using
	(void)talloc_steal(ctx, ptr);
	everywhere!!!

metze
(This used to be commit 3f8ce6d680)
2007-10-10 14:09:13 -05:00
Stefan Metzmacher
1fd1e2ba58 r16407: add parsing code the SMB2 GetInfo in the server
metze
(This used to be commit c4755c83c6)
2007-10-10 14:09:13 -05:00
Stefan Metzmacher
818c52a6b4 r16403: remove dependency to smbsrv_request next part...
metze
(This used to be commit 708a5d3bf0)
2007-10-10 14:09:13 -05:00
Stefan Metzmacher
45c99a270e r16402: start to remove the dependecy to smbsrv_request from the parsing functions
metze
(This used to be commit e4a5e2db7f)
2007-10-10 14:09:12 -05:00
Stefan Metzmacher
7c01df4e77 r16401: keep the old pointer when realloc fails, this is needed for the
search callback

metze
(This used to be commit c868b8b7d7)
2007-10-10 14:09:12 -05:00
Stefan Metzmacher
898f6f768f r16400: add more error checks
metze
(This used to be commit 779c51ad52)
2007-10-10 14:09:12 -05:00
Stefan Metzmacher
59670b2f97 r16399: - split out pushing smb_fsinfo into a DATA_BLOB
- add error checks

metze
(This used to be commit 2aaca1631f)
2007-10-10 14:09:12 -05:00
Stefan Metzmacher
f03e039e88 r16357: - start get rid of void parsing functions
- there will more changes come but I want to do them in
  relative small chunks

metze
(This used to be commit d021a8b3ee)
2007-10-10 14:09:12 -05:00
Stefan Metzmacher
594ae8f9e1 r16023: we don't need a global variable here...
noticed by the Mac OS 10 linker

metze
(This used to be commit 5928112cbc)
2007-10-10 14:08:51 -05:00
Andrew Tridgell
92acfc0799 r15855: more talloc_set_destructor() typesafe fixes. nearly done ...
(This used to be commit 396d82a231)
2007-10-10 14:08:33 -05:00
Andrew Tridgell
03e7d37461 r15827: fixed a spelling error
(This used to be commit 801357af2e)
2007-10-10 14:08:29 -05:00
Stefan Metzmacher
184c28844d r15803: the SMB2 server gives NT_STATUS_NOT_FOUND instead of NT_STATUS_INVALID_HANDLE
metze
(This used to be commit aa98aad097)
2007-10-10 14:08:25 -05:00
Stefan Metzmacher
c51dfa7926 r15802: merge tridge's fix to the SMB2 server
metze
(This used to be commit 2ea15e9d28)
2007-10-10 14:08:24 -05:00
Andrew Tridgell
f6c9fbbc50 r15799: fixed the problem with BASE-DISCONNECT after the recent memory leak
was fixed
(This used to be commit 09a9c7fdff)
2007-10-10 14:08:22 -05:00
Andrew Tridgell
00e772d747 r15796: this talloc_reference() was causing a memory leak on every NTVFS
request. The problem is that the talloc_free() in
smbsrv_send_reply_nosign() frees this reference, but doesn't free the
memory iself, thus leaving it attached to the connection context.

Metze, what was the idea behind this reference? If we need it, then we
need a corresponding talloc_free() to go with it.
(This used to be commit 2e105a32c7)
2007-10-10 14:08:21 -05:00
Stefan Metzmacher
6ba94bb12f r15771: this should be a o32s32 blob
metze
(This used to be commit fdfa6dcc97)
2007-10-10 14:08:17 -05:00
Stefan Metzmacher
1911475976 r15770: when there's a dynamic body, we need to send the first byte even if the
dynamic size if 0

metze
(This used to be commit c7e8e79d75)
2007-10-10 14:08:16 -05:00
Stefan Metzmacher
e0dcbe8dd1 r15769: this functions belong to params/ so move it.
metze
(This used to be commit 9c4c40772b)
2007-10-10 14:08:16 -05:00