summaryrefslogtreecommitdiff
path: root/source3/smbd/process.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter1-15/+14
(This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
2007-10-10r25117: The mega-patch Jerry was waiting for. Remove all pstrings fromJeremy Allison1-1/+1
the main server code paths. We should now be able to cope with paths up to PATH_MAX length now. Final job will be to add the TALLOC_CTX * parameter to unix_convert to make it explicit (for Volker). Jeremy. (This used to be commit 7f0db75fb0f24873577dcb758a2ecee74fdc4297)
2007-10-10r24809: Consolidate the use of temporary talloc contexts.Volker Lendecke1-6/+4
This adds the two functions talloc_stackframe() and talloc_tos(). * When a new talloc stackframe is allocated with talloc_stackframe(), then * the TALLOC_CTX returned with talloc_tos() is reset to that new * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse * happens: The previous talloc_tos() is restored. * * This API is designed to be robust in the sense that if someone forgets to * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and * resets the talloc_tos(). The original motivation for this patch was to get rid of the sid_string_static & friends buffers. Explicitly passing talloc context everywhere clutters code too much for my taste, so an implicit talloc_tos() is introduced here. Many of these static buffers are replaced by a single static pointer. The intended use would thus be that low-level functions can rather freely push stuff to talloc_tos, the upper layers clean up by freeing the stackframe. The more of these stackframes are used and correctly freed the more exact the memory cleanup happens. This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and lp_talloc_ctx (did I forget any?) So, never do a tmp_ctx = talloc_init("foo"); anymore, instead, use tmp_ctx = talloc_stackframe() :-) Volker (This used to be commit 6585ea2cb7f417e14540495b9c7380fe9c8c717b)
2007-10-10r24702: Remove the old API pointersVolker Lendecke1-496/+308
(This used to be commit 17df313db42199e26d7d2044f6a1d845aacd1a90)
2007-10-10r24500: Add check that bcc is correct in an incoming packet.Jeremy Allison1-1/+10
Jeremy. (This used to be commit 267a0ac48d358e1bd10d92238352ca3d867a58d4)
2007-10-10r24468: Don't forget the +4 for length :-).Jeremy Allison1-2/+2
Jeremy. (This used to be commit 4d01e0b7443aa4e4d450d705df5762d801172809)
2007-10-10r24467: Do range checking on incoming smb request.Jeremy Allison1-0/+14
Jeremy. (This used to be commit dbd58dd647279def1681d88701e41d8a738c680a)
2007-10-10r24457: Convert reply_tcon to the new APIVolker Lendecke1-1/+1
Jeremy, I really apologize for doing this, but I just wanted to enjoy converting the last SMB call :-) I've left one little task for you there, I'm not certain that checking the inbuf length is correct here. Volker (This used to be commit 1e08fddafda11961f8855423b29c1f8a9a6b4457)
2007-10-10r24453: Remove the read and write bmpx callsVolker Lendecke1-4/+4
Talked to both Tridge and Jeremy about this, Tridge said that there is a special error message persuading OS/2 to fall back to other methods. The calls now checked in always return the error message we used to return when "read bmpx = False" was set (the default): ERRSRV, ERRuseSTD. If someone has a reproducable test case where this is really needed, we can always dig it up from version control and convert it to the new API. But that time without that silly parameter, and with a torture test case for "make test" please :-) Volker (This used to be commit d941aae2dfd11609e807bf4ce712571a2e354627)
2007-10-10r24445: Convert SMBwritebraw. No test suite unfortunately.... I need to ↵Jeremy Allison1-1/+1
write one for this. Jeremy (This used to be commit edc17dfcbd21cccaffb76f4ae67fe4b06520f1a9)
2007-10-10r24444: Convert reply_find[n]close to the new APIVolker Lendecke1-2/+2
(This used to be commit 6af85953465789594342f2d199ef5d29462cf34f)
2007-10-10r24443: Convert reply_search/fclose to the new APIVolker Lendecke1-4/+4
(This used to be commit a8a33c377e38046b4103cf1d59032b97ab6bac9a)
2007-10-10r24442: Convert reply_copy to the new APIVolker Lendecke1-1/+1
(This used to be commit 0cb00c54750837ab2d2dc12e4947fedb7d38e878)
2007-10-10r24441: Convert reply_ioctl to the new APIVolker Lendecke1-1/+1
(This used to be commit a5af7ebb7f1d869659fbab187652e68ec4fafbb8)
2007-10-10r24440: Convert the reply_sendXX functions to the new APIVolker Lendecke1-4/+4
(This used to be commit a64bc31098de8694b79eeafd3a226cf519700707)
2007-10-10r24439: Convert reply_get/setattrE to the new APIVolker Lendecke1-2/+2
(This used to be commit 6b0ad071d85ddd8fbf24386db11688bde49baf81)
2007-10-10r24436: Convert reply_lockread/writeunlock to the new APIVolker Lendecke1-2/+2
(This used to be commit 1b6add251ca1db565a03407db30884132dd93e7d)
2007-10-10r24433: Convert reply_ntrename to the new APIVolker Lendecke1-1/+1
(This used to be commit 42b07a52b9f4fe147426e9156958cb4d33691678)
2007-10-10r24431: Convert the reply_printXX calls to the new APIVolker Lendecke1-4/+4
(This used to be commit e528479f56bc936cc60eb95c9738a48de48dbd05)
2007-10-10r24430: Convert reply_writeclose to the new APIVolker Lendecke1-1/+1
(This used to be commit 6def2ee03bb3510f000b1977c4d5293cad4ae364)
2007-10-10r24428: Convert reply_unlock to the new APIVolker Lendecke1-1/+1
(This used to be commit 01c7426fc0e2af6a955dcb37111ca439fc913d5f)
2007-10-10r24427: Convert reply_lock to the new APIVolker Lendecke1-1/+1
(This used to be commit 212f43ddeaa6369e5437ed3915eb066a37bc9014)
2007-10-10r24426: Convert reply_read to the new APIVolker Lendecke1-1/+1
(This used to be commit 30aada0ef8e16ce94035039b63ab140d158009d9)
2007-10-10r24425: Convert reply_write to the new APIVolker Lendecke1-1/+1
(This used to be commit 244965f7b67becb85774311e6ce84318d554384d)
2007-10-10r24423: Convert reply_lseek to the new APIVolker Lendecke1-1/+1
(This used to be commit bd228853863ce5b4b9b974347c50c956d7f2e055)
2007-10-10r24422: Convert reply_ctemp to the new APIVolker Lendecke1-1/+1
(This used to be commit 3cc22fd74f0ffc72f4340a963b4eca7178be2192)
2007-10-10r24417: Convert reply_setatr to the new APIVolker Lendecke1-1/+1
(This used to be commit 56bab5ea4cbcf8e46101053bd68f66691fd737c5)
2007-10-10r24415: Convert reply_getatr to the new APIVolker Lendecke1-1/+1
(This used to be commit 1a08b97a933e25362707cb0d8ba09d733af4cbbf)
2007-10-10r24414: Convert reply_mv to the new APIVolker Lendecke1-1/+1
(This used to be commit fa341e4840d422cee389c06112e0b2df43a31f45)
2007-10-10r24412: Convert reply_open to the new APIVolker Lendecke1-1/+1
(This used to be commit 394987f5224086cb379ea8d0364924679b8a0214)
2007-10-10r24406: Push reply_prep_legacy into reply_lockingXVolker Lendecke1-1/+1
(This used to be commit bce87ebdc00b9086dcdcc55442b57b92345971ac)
2007-10-10r24404: Remove get_OutBuffer usage from blocking.cVolker Lendecke1-5/+0
(This used to be commit cb8fab5663db2cb408e1b85a7287d3670b09d503)
2007-10-10r24387: Convert readbraw to the new api. Volker, keep checking inJeremy Allison1-1/+1
your patches please :-). I'll work on SMBreadBmpx tomorrow. Jeremy. (This used to be commit 27e183afa8d23dca6aada1f3810dc53aa8c55ccd)
2007-10-10r24386: Piss off Volker (not deliberately) by checking in a reply_mknew -> ↵Jeremy Allison1-2/+2
conversion. Sorry vl, remove one of your 15 patches :-). Jeremy. (This used to be commit a7648ed9d40d6f61362e1488dc30216363870694)
2007-10-10r24358: Push reply_prep_legacy into reply_nttrans[s]Volker Lendecke1-2/+2
(This used to be commit 197c2310792965f94d66ad7c8016a1594945bdf8)
2007-10-10r24349: For large read&x we need more than 64k of outbuf.Volker Lendecke1-1/+12
(This used to be commit f7e2eec35f7457ec70d75ef099b34f83c9dfd654)
2007-10-10r24328: Restore chain_reply error handlingVolker Lendecke1-2/+3
Get the whole smb header from the second chained function, in particular the error fields (This used to be commit 0eb831ca0eadb725242cb4ad75eb7008a5c18bf2)
2007-10-10r24327: First round of fixes to chain_replyVolker Lendecke1-3/+4
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-10r24322: Wrap reply_read_and_X in reply_prep_legacyVolker Lendecke1-1/+1
(This used to be commit 7926b5dfb8d05ad2fe40c3f7658a492f0450e505)
2007-10-10r24318: Print a prominent warning when reply_prep_legacy is calledVolker Lendecke1-0/+2
This is a temporary function anyway (This used to be commit 9269e3d5882e97d1c884df6511fa6d63a7b1cfcd)
2007-10-10r24271: Push reply_prep_legacy into reply_write_and_XVolker Lendecke1-1/+1
(This used to be commit 607e7d2447bf19eea872a3a4d1ad499a53f0a935)
2007-10-10r24231: Push allocating InBuffer/OutBuffer into reply_transsVolker Lendecke1-1/+1
(This used to be commit 74ae19cca6dd15b65deffbf464cfd0e485da8611)
2007-10-10r24229: Push allocating InBuffer/OutBuffer into reply_transsVolker Lendecke1-1/+1
(This used to be commit 39a7809aa4c34bb26178589245c419df44796e22)
2007-10-10r24225: Convert reply_flush to the new APIVolker Lendecke1-1/+1
(This used to be commit f843c02f0794964eba02ab983f9c0701801f415c)
2007-10-10r24223: Convert reply_echo to the new APIVolker Lendecke1-1/+1
(This used to be commit 4863ff2899419e791ed0e340821072d004fb1d17)
2007-10-10r24159: Convert reply_transs2 to the new APIVolker Lendecke1-1/+1
(This used to be commit a55a4d71ffe9ff1395e02f8bb3ad88fe5132fe99)
2007-10-10r24156: Convert reply_trans2 to the new APIVolker Lendecke1-1/+1
(This used to be commit a9c2d75b42be8b0d89ed1e1a2ce2c6ab4284f5ea)
2007-10-10r24135: Convert call_trans2open to the new APIVolker Lendecke1-1/+1
This itself won't help much, because send_trans2_replies_new still allocates the big buffers, but stay tuned :-) Also add/update my copyright on stuff I recently touched. Volker (This used to be commit 248f15ff143474db2493cef89ba446892342a361)
2007-10-10r24119: Convert reply_exit to the new APIVolker Lendecke1-1/+1
(This used to be commit d4d550aa2ba20d704d2ab1265732b03405e8819c)
2007-10-10r24100: Convert reply_ntcancel to the new APIVolker Lendecke1-1/+1
(This used to be commit 6e5f39379f60e30cd0445a049df619ec8f65fc01)