1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

23293 Commits

Author SHA1 Message Date
Volker Lendecke
2da44a2dee r24412: Convert reply_open to the new API
(This used to be commit 394987f5224086cb379ea8d0364924679b8a0214)
2007-10-10 12:29:42 -05:00
Derrell Lipman
c638a84cb1 r24410: - I got tricked by function naming. Contrary to what seemed obvious to me,
prs_mem_free() is not the function to be called to free memory allocated by
  prs_alloc_mem().  I've added a comment so others may not get bitten too.

- Remove incorrect memory free calls added yesterday to replace SAFE_FREE.
  The memory is actually now on a talloc context, so gets freed by the caller
  when that context is freed.  We don't need to free it iternally.

Derrell
(This used to be commit 2fde343150c17959fc970b18e1eb4efde800b4db)
2007-10-10 12:29:41 -05:00
Volker Lendecke
a12e7ef30a r24409: Check wct in reply_open
(This used to be commit ee6f212ed0b332e6886056e6d254d0c0da7c5046)
2007-10-10 12:29:41 -05:00
Volker Lendecke
ec5b2a7181 r24408: Remove reply_prep_legacy from reply_lockingX
(This used to be commit e0db5fd11bd5e0a3aca801a14509fddd6a625a84)
2007-10-10 12:29:41 -05:00
Volker Lendecke
29df25351d r24406: Push reply_prep_legacy into reply_lockingX
(This used to be commit bce87ebdc00b9086dcdcc55442b57b92345971ac)
2007-10-10 12:29:41 -05:00
Volker Lendecke
439d6020e9 r24405: Check wct in reply_lockingX
(This used to be commit c4972632f8b41c87a4c0fdfc6c98515c42eafda5)
2007-10-10 12:29:41 -05:00
Volker Lendecke
ae89ba48ec r24404: Remove get_OutBuffer usage from blocking.c
(This used to be commit cb8fab5663db2cb408e1b85a7287d3670b09d503)
2007-10-10 12:29:41 -05:00
Volker Lendecke
e0880fa7bd r24403: Remove reply_prep_legacy from send_nttrans_replies
(This used to be commit a6400ca6e2301d1cfc1d6a513dc7809ed99d7b58)
2007-10-10 12:29:40 -05:00
Volker Lendecke
df6edb0d3c r24402: Fix a 64-bit warning
(This used to be commit 73d99d6f9a5554d957ae737ff617b6a2e88b52bc)
2007-10-10 12:29:40 -05:00
Volker Lendecke
f7f176dd0d r24401: Push reply_prep_legacy into send_nt_replies
(This used to be commit 489436a65632c4e6c1001a23dd33c896e9d7dfde)
2007-10-10 12:29:40 -05:00
Volker Lendecke
52a738301a r24400: Fix a valgrind bug
(This used to be commit 7c65deaed734f5623813922637877b94fc9a6259)
2007-10-10 12:29:40 -05:00
Volker Lendecke
6a5bdb79e1 r24399: Change change_notify_reply to use send_nt_replies_new
(This used to be commit be67bb50eef88f4d56f48e785c1e5865616f5f33)
2007-10-10 12:29:40 -05:00
Volker Lendecke
b41b38031f r24398: Convert call_nt_transact_notify_change to the new API
(This used to be commit 607b3ab8bc6052770f0324b57f3db6e1c11a7005)
2007-10-10 12:29:40 -05:00
Volker Lendecke
bba684f2c0 r24394: Convert call_nt_transact_rename to the new API
(This used to be commit 189876a664efcfb601a8b14c21f272ed7d9f6b41)
2007-10-10 12:29:39 -05:00
Volker Lendecke
4f111b6e78 r24393: Convert call_nt_transact_set_user_quota to the new API
(This used to be commit 4cb60abd4c7f32a51f0e9be0d226fe09c794bed8)
2007-10-10 12:29:39 -05:00
Volker Lendecke
3038f27a59 r24392: Minor simplifications
(This used to be commit 96a943587418e07019974b45c368e749a5ef82c2)
2007-10-10 12:29:39 -05:00
Volker Lendecke
4b485d807e r24391: Convert call_nt_transact_get_user_quota to the new API
(This used to be commit 0e47a6643e9b3f546e1905e5152d3abe2511bcd9)
2007-10-10 12:29:39 -05:00
Derrell Lipman
83fc92c82c r24388: - ACL retrieval provided incomplete information because the buffer pointer was
incremented too far in some circumstances.  In these cases, only the first
 of multiple concatenated strings would be seen.

- Working on bug 4649 pertaining to delete an ACL, this fixes the reported
 crash.  It appears to have been an incomplete switchover from malloc to
 talloc, as the memory was still being freed with SAFE_FREE.

 Deleting ACLs still doesn't work.  Although a valid request is sent to the
 server and a SUCCESS response is returned, the method that's used in
 libsmbclient for deleting ACLs seems to be incorrect.  In looking at the
 samba4 torture tests, it appears that we should be turning on the INHERIT
 flag if we want to delete the ACL.  (I could use some assistance on the
 proper flags to send, from anyone familiar with this stuff.)

- Apply patch from SATOH Fumiyasu to fix bug 4750.  smbc_telldir_ctx() was not
  returning a value useful to smbc_lseekdir_ctx().

Derrell
(This used to be commit 2ac502e29bd8390252fe4ae8344faab49ca01ff5)
2007-10-10 12:29:39 -05:00
Jeremy Allison
d701a47c73 r24387: Convert readbraw to the new api. Volker, keep checking in
your patches please :-). I'll work on SMBreadBmpx tomorrow.
Jeremy.
(This used to be commit 27e183afa8d23dca6aada1f3810dc53aa8c55ccd)
2007-10-10 12:29:38 -05:00
Jeremy Allison
5cc0a6b43c r24386: Piss off Volker (not deliberately) by checking in a reply_mknew -> conversion.
Sorry vl, remove one of your 15 patches :-).
Jeremy.
(This used to be commit a7648ed9d40d6f61362e1488dc30216363870694)
2007-10-10 12:29:38 -05:00
Volker Lendecke
6624bf7fd2 r24385: Convert call_nt_transact_query_security_desc to the new API
(This used to be commit f44e0aac2b47ea377c2ce701426e57ee15c42fe7)
2007-10-10 12:29:38 -05:00
Volker Lendecke
ff355558e3 r24384: Convert call_nt_transact_set_security_desc to the new API
(This used to be commit 925ed1e186da594b5c40d3abbad885060ca87fd0)
2007-10-10 12:29:38 -05:00
Volker Lendecke
89dfa3883f r24383: Convert call_nt_transact_ioctl to the new API
(This used to be commit 8e6485e0782e9ab31b07dd9f662bd845f58faf4a)
2007-10-10 12:29:38 -05:00
Volker Lendecke
89f27bb35b r24382: Remove reply_prep_legacy from call_nt_transact_create
(This used to be commit 73392485f4c3bf8b4138b500b4882c492bf96358)
2007-10-10 12:29:37 -05:00
Volker Lendecke
8590265e94 r24381: Push reply_prep_legacy into call_nt_transact_create
(This used to be commit ca18ba96be84ed12003af84c53cc5f2e92fcc984)
2007-10-10 12:29:37 -05:00
Volker Lendecke
20b3daec50 r24368: Push down reply_prep_legacy one level
Not pretty, but necessary to convert the calls one by one
(This used to be commit 523a463be427da0c3dbe01399e87b82b9f759512)
2007-10-10 12:29:37 -05:00
Volker Lendecke
1b034a8f9e r24367: Push reply_prep_legacy into handle_nttrans
(This used to be commit 8b5e51c2668799890d033a371e5b9a57b8f086c6)
2007-10-10 12:29:37 -05:00
Volker Lendecke
2a375f12be r24362: Initialize padding also when no params are sent back
(This used to be commit 03c5e960a21ae78cdd832a5c760015f7fbd83bd9)
2007-10-10 12:29:36 -05:00
Volker Lendecke
1d8e64aece r24361: Push reply_prep_legacy down in reply_nttrans[s]
(This used to be commit d97a2e91d3c44ad39e6a1ee369e1e906d98707f5)
2007-10-10 12:29:36 -05:00
Günther Deschner
968c43f874 r24360: Make ndr_print_debug_helper() output readable.
Guenther
(This used to be commit 45ee3b55d51fcde0e5c0ea56069656d6f2647fff)
2007-10-10 12:29:36 -05:00
Volker Lendecke
6216cd58c2 r24359: Fix the build
(This used to be commit b2ac1a3ec59f7c804521e5a478916fba16f4b3d4)
2007-10-10 12:29:36 -05:00
Volker Lendecke
6bee410431 r24358: Push reply_prep_legacy into reply_nttrans[s]
(This used to be commit 197c2310792965f94d66ad7c8016a1594945bdf8)
2007-10-10 12:29:36 -05:00
Volker Lendecke
ecb32af916 r24357: Check wct in reply_nttrans[s]
(This used to be commit 9ab87e644e4dc54ebbcb8ad300fe338f4a809ba9)
2007-10-10 12:29:35 -05:00
Volker Lendecke
2d8e4456cd r24356: Add send_nt_replies_new wrapper
(This used to be commit 8a910d37ccc767eb8ab25ef2af3a136ad874346f)
2007-10-10 12:29:35 -05:00
Stefan Metzmacher
5af3e2d613 r24355: move reply_outbuf() to the place where it's used
metze
(This used to be commit c7ed550483233851d395edb4b8443b3296b45fb7)
2007-10-10 12:29:35 -05:00
Volker Lendecke
b01978f2a9 r24354: Remove offsetof macro
Samba4 seems not to suffer from it
(This used to be commit d93b5d50a00286586c931a5876f5933a520b6ce7)
2007-10-10 12:29:35 -05:00
Kai Blin
0bb638a798 r24353: Add a getpwuid lookup to wbinfo.
Merged from my Samba4 GSoC branch.
Volker, can you check if that's done the way you thought?
(This used to be commit f8560ea66ce522ff11d16f0e36e10853fe2639d7)
2007-10-10 12:29:32 -05:00
Volker Lendecke
5d39acf2f8 r24351: Remove reply_prep_legacy from reply_read_and_X
(This used to be commit 8f3e3a21008a2cb6ed73d8629aaf1fa565f19e79)
2007-10-10 12:29:32 -05:00
Volker Lendecke
2fb27fcb69 r24349: For large read&x we need more than 64k of outbuf.
(This used to be commit f7e2eec35f7457ec70d75ef099b34f83c9dfd654)
2007-10-10 12:29:32 -05:00
Volker Lendecke
a0ad547ccb r24348: Do not use inbuf/outbuf in the sendfile path of read_and_X
(This used to be commit 595ea708ee8c9b6f86648dfdb5ff5a3feafe1f07)
2007-10-10 12:29:31 -05:00
Volker Lendecke
6dcf0c64cf r24347: fake_sendfile does not need Inbuf/Outbuf
In the future, we might put the new Linux splice(2) syscall here. This
should also work for reply_write, but getting that in is a bit trickier.
We need to decide very early before fetching the whole buffer that we
have a write call.
(This used to be commit 32921c878a7f60251a9217173951065784077077)
2007-10-10 12:29:31 -05:00
Volker Lendecke
d198962d14 r24346: Push reply_prep_legacy into send_file_readX
(This used to be commit cded66a7dc72d41e4d6ea90edd8b03ed080c042f)
2007-10-10 12:29:31 -05:00
Jelmer Vernooij
db2666759d r24341: Make libreplace provide offsetof.
(This used to be commit 4a5fa715a6af281282092644817599f79806981d)
2007-10-10 12:29:31 -05:00
Jelmer Vernooij
594bbfcdee r24340: Use standard data type uint32_t rather than tdb-specific u32.
(This used to be commit 26d1430283bd4ae8b8a84f3253e33417d509c1a4)
2007-10-10 12:29:30 -05:00
Volker Lendecke
921fbb25eb r24332: schedule_aio_read_and_X does not need InBuf/OutBuf
(This used to be commit 9ad91bd20592850d7b6393e1ac7f0e0919d69668)
2007-10-10 12:29:30 -05:00
Volker Lendecke
ef6c3a3c7a r24331: Fix an error where gid_t != 32 bit
(This used to be commit 748fdfbd7ba5cc844f1370a968465b19ae698f94)
2007-10-10 12:29:30 -05:00
Volker Lendecke
1b69659315 r24330: Fix a 64-bit error
(This used to be commit 30fd90346550f1c672edb51ab63b8139a6c4053e)
2007-10-10 12:29:30 -05:00
Volker Lendecke
99a1f5a75c r24329: Fix a 64-bit bug
enums are not necessarily represented as 32-bit uints. On assignment
(see line 1029) implicit conversion happens, but not when pointers are
taken.
(This used to be commit 67ec6863dd91ca2421e4541add99dfd739805242)
2007-10-10 12:29:30 -05:00
Volker Lendecke
d90f6fa1bd r24328: Restore chain_reply error handling
Get the whole smb header from the second chained function, in particular
the error fields
(This used to be commit 0eb831ca0eadb725242cb4ad75eb7008a5c18bf2)
2007-10-10 12:29:30 -05:00
Volker Lendecke
26f6826dfc r24327: First round of fixes to chain_reply
The argument to smb_setlen does not contain the nbt header of 4 bytes

The chained function might allocate outbuf itself (as now happens with
reply_read_and_X). This would erroneously overwrite the caller's outbuf.
Give it an outbuf pointer of it's own
(This used to be commit f923bba90866af14b32c0d0ab58acc00a5939fbb)
2007-10-10 12:29:29 -05:00