summaryrefslogtreecommitdiff
path: root/source3/smbd/trans2.c
AgeCommit message (Collapse)AuthorFilesLines
2007-11-26Fix bug 5055Volker Lendecke1-1/+1
(This used to be commit 8bcd2df841bae63e7d58c35d4728b7d853471697)
2007-11-20Paranoia check that space_remaining never goes -ve.Jeremy Allison1-2/+10
Jeremy. (This used to be commit 76f9c0b2dccffbff7cbf98aa63f50b48ad7cb9cb)
2007-11-16Ensure we use PATH_MAX for symlinks.Jeremy Allison1-2/+2
Jeremy. (This used to be commit a90ef69350c5efcf8dcf95d4853cbe3c662d1ba3)
2007-11-05Fix a debug messageVolker Lendecke1-1/+1
(This used to be commit a86849e4f9512b680f26010c297cec14251dafdd)
2007-11-03Remove the smb_read_error global variable and replaceJeremy Allison1-1/+0
it with accessor functions. "One global or pstring a day...." :-). Jeremy. (This used to be commit d50d14c300abc83b7015718ec48acc8b3227a273)
2007-11-01Add brackets so as not to break the POSIX caps return.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 47dbddcb5361caa30ee60cf4e15bb50d557d1191)
2007-10-31Note when we're setting change time, not write time, and sendJeremy Allison1-10/+24
message accordingly. Apart from not supporting create time we now pass the S4 RAW-NOTIFY torture. Jeremy. (This used to be commit 8a77f520fa03afa60eac2aaeab4babe7dd8db4f0)
2007-10-31Fix some cases where file_set_dosmode was being passedJeremy Allison1-1/+1
False instead of NULL. Fix more of the notifications to be correct for Samba4 RAW-NOTIFY torture (we had missed one when calling set_ea_dos_attribute(). Jeremy. (This used to be commit 39d265375cf55eedddef2c4faa65398df73d5ed2)
2007-10-31Make explicit draining the socket on RECVFILE. AddJeremy Allison1-1/+8
capability for large UNIX write if not signing and recvfile set. Cope with large UNIX write length on incoming processing. Stevef - we can now test 1-16Mb writes from CIFFS. Jeremy. (This used to be commit 8cf78776b0a44bd026cef3d74eb11cfb415f8303)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-45/+45
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10Fix valgrind-found memory overwrite.Jeremy Allison1-2/+2
(This used to be commit 183df4754b5f18419f4d8fca2c0fa19919174556)
2007-10-10[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter1-48/+1
(This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
2007-10-10r25184: Fix some C++ warnings and an uninitialized variableVolker Lendecke1-1/+1
(This used to be commit b64df8a3c504ab7749c21ffb26e4771a9a0a328f)
2007-10-10r25163: Fix wrong ctx passed to talloc_asprintf_append().Jeremy Allison1-1/+1
Found by Metze's code review (thanks Metze !). Jeremy. (This used to be commit a7370eea6be29c0e2adf5ae62aa6182b9165e744)
2007-10-10r25138: More pstring elimination. Add a TALLOC_CTX parameterJeremy Allison1-10/+12
to unix_convert(). Jeremy. (This used to be commit 39c211a702e91c34c1a5a689e1b0c4530ea8a1ac)
2007-10-10r25117: The mega-patch Jerry was waiting for. Remove all pstrings fromJeremy Allison1-156/+173
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-10r25111: Move to talloced pathnames on most code paths.Jeremy Allison1-49/+57
There are now ony 17 pstrings left in reply.c, and these will be easy to remove (and I'll be doing that shortly). Had to fix an interesting bug in pull_ucs2_base_talloc() when a source string is not null terminated :-). Jeremy. (This used to be commit 0c9a8c4dff10974dbffd2a302ae982896122fcc0)
2007-10-10r25102: Rewrite msdfs code to use talloced filenames. Passes make testJeremy Allison1-28/+43
and make valgrindtest. Final step will be to change srvstr_get_path() to return talloced memory in the major codepaths. Jeremy. (This used to be commit cf6b6f9c3a38b68d2671c753f412772344506742)
2007-10-10r25009: Large patch discussed with Volker. Move unix_convert to a talloc-basedJeremy Allison1-94/+149
interface. More development will come on top of this. Remove the "mangled map" parameter. Jeremy. (This used to be commit dee8beba7a92b8a3f68bbcc59fd0a827f68c7736)
2007-10-10r24809: Consolidate the use of temporary talloc contexts.Volker Lendecke1-2/+2
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-10r24699: Actually write 24 zeros instead of zero 24's...Volker Lendecke1-1/+1
Jeremy, please check ;-) (This used to be commit 85b64bde7df10ade5ba0abd493d433a7688f0979)
2007-10-10r24548: Fix the case-changing renamesVolker Lendecke1-1/+20
This was broken when I changed reply_mv to wrap in a open_file_ntcreate call, unix_convert on the destination was called twice (This used to be commit fddc9db91175bdb0b7ac6a636f8bef918bd7c1b4)
2007-10-10r24498: More extra code into a function, reply_openerror.Jeremy Allison1-24/+4
Jeremy. (This used to be commit 43ddfb8c918bd27e2efd3b54077db815da80a53a)
2007-10-10r24476: Fix the mappings in reply_opeXXX calls. Now to test renames.Jeremy Allison1-1/+3
Jeremy. (This used to be commit 74d10b09a68f5c06d6b3ceffe0a40818dc84106e)
2007-10-10r24475: Fix the error mapping for SMB_POSIX_PATH_OPEN.Jeremy Allison1-0/+12
Jeremy. (This used to be commit 6dac315ba1d9b9582c2b573e0785b2f6d627f846)
2007-10-10r24470: Start fixing up the mapping of OBJECT_NAME_COLLISIONJeremy Allison1-1/+12
to DOS error ERRDOS, ERRfilexists on open calls. Jeremy. (This used to be commit 4674486450bbe79ec9b22bcbc23c534365d6798a)
2007-10-10r24444: Convert reply_find[n]close to the new APIVolker Lendecke1-13/+25
(This used to be commit 6af85953465789594342f2d199ef5d29462cf34f)
2007-10-10r24362: Initialize padding also when no params are sent backVolker Lendecke1-4/+6
(This used to be commit 03c5e960a21ae78cdd832a5c760015f7fbd83bd9)
2007-10-10r24320: Fix the wct checks in reply_trans2 and the reply_trans callsVolker Lendecke1-1/+1
No idea what I've been smoking here. Thanks to Stefan for closely looking (This used to be commit 708f5af2e8c10d9a0d0027e3c31fa23689e746b8)
2007-10-10r24163: Remove the send_trans2_replies_new wrapperVolker Lendecke1-88/+89
This changes send_trans2_replies to not depend on large buffers anymore and finishes the trans2 conversion. (This used to be commit b1d133e4ffa8c9b8219ba6e7b83e23ca4bdd1616)
2007-10-10r24162: send_trans2_replies is now static in trans2.cVolker Lendecke1-8/+8
(This used to be commit 47261fb6fecc036cb1605f46bbe24e9b3661ff8c)
2007-10-10r24161: handle_trans2 takes care of errors itself, no need to do it in ↵Volker Lendecke1-6/+0
reply_transs2 (This used to be commit ca26b43e02f25d75e7439c6130f32dc322acd327)
2007-10-10r24160: process_trans2 in smbd/blocking.c used send_trans2_replies.Volker Lendecke1-6/+6
Fake a struct smb_request here. Volker (This used to be commit f712d1c92bee024a165b5facabdac1e2c866d9b1)
2007-10-10r24159: Convert reply_transs2 to the new APIVolker Lendecke1-46/+40
(This used to be commit a55a4d71ffe9ff1395e02f8bb3ad88fe5132fe99)
2007-10-10r24156: Convert reply_trans2 to the new APIVolker Lendecke1-56/+52
(This used to be commit a9c2d75b42be8b0d89ed1e1a2ce2c6ab4284f5ea)
2007-10-10r24155: Check wct in reply_trans2Volker Lendecke1-5/+21
(This used to be commit e0a708c79b4db4aab84022d568b5e7bf519e4b5a)
2007-10-10r24154: handle_trans2 does not reference inbuf/outbuf anymoreVolker Lendecke1-13/+9
(This used to be commit 8eb016a91e3ec8d1d9d5ae1ec6f92e1e0657d593)
2007-10-10r24153: Convert call_trans2setfsinfo to the new API.Volker Lendecke1-30/+57
This *might* break the transport encryption stuff. I need to check that. (This used to be commit 82b34d7bdbe5c5038810c11540b6b7bc04290653)
2007-10-10r24152: Convert call_trans2ioctl to the new APIVolker Lendecke1-25/+30
(This used to be commit db4e6781c4d1a9755a3ec45556be8dd935f15bae)
2007-10-10r24151: Convert call_trans2getdfsreferral to the new APIVolker Lendecke1-17/+25
(This used to be commit 642c58648b2468544e9488cbffe1a8b236949bcc)
2007-10-10r24150: Convert call_trans2qfsinfo to the new APIVolker Lendecke1-36/+59
(This used to be commit cdd86497b9830ba5fbc5b4511ed39ca44167faab)
2007-10-10r24149: Convert call_trans2setfilepathinfo to the new APIVolker Lendecke1-52/+81
(This used to be commit 50aa149cefc1da587f110eb0bf0344c737500f5b)
2007-10-10r24148: Remove some inbuf refs from subcommands of call_trans2setfilepathinfoVolker Lendecke1-37/+24
(This used to be commit 09ed6537b39f72e61043a93fadea33562b07c6c6)
2007-10-10r24147: Remove some inbuf refs from call_trans2setfilepathinfoVolker Lendecke1-4/+6
(This used to be commit a13c42be7548fc0de3e1f6f1eaacbad3046af0d0)
2007-10-10r24144: Fix the buildVolker Lendecke1-7/+5
In a function returning void the "return;" needs to stand alone on some compilers (This used to be commit 28affcca8e22b9a147876a60fec28551256bcaa8)
2007-10-10r24143: Convert call_trans2qfilepathinfo to the new APIVolker Lendecke1-85/+161
(This used to be commit 0b84e29120b87bf6fc86df10102f1c4d4f98cdb6)
2007-10-10r24142: Remove some direct inbuf references from call_trans2qfilepathinfoVolker Lendecke1-4/+9
(This used to be commit c9c0133d5512e68fcaf22b2abd3343ae944ddb9d)
2007-10-10r24140: Convert call_trans2findnotifyfirst/next to the new APIVolker Lendecke1-24/+30
(This used to be commit 46d9c51631d099af0f8696d3942eb51b0cb09865)
2007-10-10r24139: Convert call_trans2mkdir to the new APIVolker Lendecke1-25/+39
(This used to be commit d0b7f409e1ec88bcd695474aa77e75cb50dce013)
2007-10-10r24138: Convert call_trans2findnext to the new APIVolker Lendecke1-27/+42
(This used to be commit af1855e4cebb6df3415ca5389b10aaa5a956adc2)