summaryrefslogtreecommitdiff
path: root/source3/smbd/nttrans.c
AgeCommit message (Collapse)AuthorFilesLines
2007-12-05Implement create_file()Volker Lendecke1-706/+347
Rip out the cores of reply_ntcreate_and_X and call_nt_transact_create Volker (This used to be commit 8cd27e4a7a1a2df0ff686ebe0b1a779511effd27)
2007-12-05Reformatting, also allow quotas for transact_createVolker Lendecke1-12/+38
(This used to be commit 956aae7a57364debf724a7ef0bd0074119a24d24)
2007-12-05Tiny refactoringsVolker Lendecke1-17/+12
(This used to be commit f3421c3b86aece4f8303e864c5df97485db77f88)
2007-12-05Split out sd parsingVolker Lendecke1-5/+33
(This used to be commit 5a9d147e41b260cb620f026291786eeb95ebc64f)
2007-12-05ReformattingVolker Lendecke1-9/+12
(This used to be commit 719941605333a453c4219aed45780862c94a5c7c)
2007-12-05Align formatting, one TALLOC_FREE is enoughVolker Lendecke1-5/+5
(This used to be commit 5bf4647dea71305d9a92875a751b24c8a2e4a916)
2007-12-05Move pulling the ea list out of the wayVolker Lendecke1-14/+8
(This used to be commit 753e640f49125c319d7b8f2db262e273a1727691)
2007-12-05ReformattingVolker Lendecke1-10/+12
(This used to be commit fb900184feeda37691cf9bd57c029988648de9f8)
2007-12-05Put posix semantic calculation in the same place in both routinesVolker Lendecke1-9/+9
(This used to be commit f6d62226a33cdff41ad7881996d856b7130ef15c)
2007-12-05Tiny refactoringVolker Lendecke1-6/+8
Reformatting, consolidate oplock calculation to the same place in both routines (This used to be commit a855808f4851a800055bfee5df39ca72057e55f9)
2007-12-05Tiny refactoringVolker Lendecke1-3/+3
(This used to be commit 481e35eba8e130041848887ec5fb6212e331eb14)
2007-12-05TALLOC_FREE earlyVolker Lendecke1-4/+10
(This used to be commit 4b1f0d1d93d1e7bd0b4fa641d4e9629af8234d71)
2007-12-05consolidate srvstr_get_path in ntcreate_and_XVolker Lendecke1-89/+59
(This used to be commit 4a2d502903934f4c3dc6b31595fe77a2013dbc21)
2007-12-05Tiny refactoringVolker Lendecke1-3/+2
(This used to be commit b79b16d637d41a356c036c6aac932e4504d2d7b0)
2007-12-05tiny refactoringVolker Lendecke1-4/+5
(This used to be commit 7f15a9f5a281052d2bed13a622b2fc9a24c62096)
2007-12-01In nttransact_create, we also need to check for delete readonlyVolker Lendecke1-1/+2
(This used to be commit f4cc9cab518e97c1049aaad7516aba212ae15c95)
2007-11-13Make [f]get_nt_acl return NTSTATUSVolker Lendecke1-7/+11
(This used to be commit dcbe1bf942d017a3cd5084c6ef605a13912f795b)
2007-11-12Fix bug #5073. Allow "delete readonly = yes" to correctlyJeremy Allison1-1/+2
override deletion of a file. Fix from David Shaw <dshaw@jabberwocky.com> Jeremy. (This used to be commit 5d1d650d192d4782421b5c3c2be1b632d4318279)
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-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-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-14/+14
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-10r25309: Volker's fix for bug #4984 - samba4 torture testJeremy Allison1-41/+71
to follow. Ensure we don't prepend "./" as a root directory - this is an invalid pathname for unix_convert(). Jeremy. (This used to be commit f70ac2e25847e41ecf54ae9d66e3247e1996b152)
2007-10-10r25184: Fix some C++ warnings and an uninitialized variableVolker Lendecke1-2/+2
(This used to be commit b64df8a3c504ab7749c21ffb26e4771a9a0a328f)
2007-10-10r25138: More pstring elimination. Add a TALLOC_CTX parameterJeremy Allison1-11/+13
to unix_convert(). Jeremy. (This used to be commit 39c211a702e91c34c1a5a689e1b0c4530ea8a1ac)
2007-10-10r25135: Remove one END_PROFILE(SMBntcreateX) from call_nt_transact_create() ↵Günther Deschner1-1/+0
which appears to be a leftover. Should fix the build with profiling enabled. Jeremy, please check. Guenther (This used to be commit 98f2e10e3f7a86b1b30619a25ee15a489ad10d43)
2007-10-10r25117: The mega-patch Jerry was waiting for. Remove all pstrings fromJeremy Allison1-7/+16
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-170/+206
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-23/+35
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-42/+51
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-1/+1
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-3/+3
(This used to be commit 17df313db42199e26d7d2044f6a1d845aacd1a90)
2007-10-10r24659: Some formatting changes helping to minimize the 3_2_0 diffVolker Lendecke1-3/+3
(This used to be commit c5caea43af154671448df82881efe09a5c982386)
2007-10-10r24498: More extra code into a function, reply_openerror.Jeremy Allison1-93/+70
Jeremy. (This used to be commit 43ddfb8c918bd27e2efd3b54077db815da80a53a)
2007-10-10r24474: Map error value NT_STATUS_OBJECT_NAME_COLLISIONJeremy Allison1-34/+24
to ERRDOS, ERRfilexists for NTCreateX and NTTransCreate. Jeremy. (This used to be commit 5b2316d1734765ef6c31ff09beea974d9629d17f)
2007-10-10r24433: Convert reply_ntrename to the new APIVolker Lendecke1-30/+51
(This used to be commit 42b07a52b9f4fe147426e9156958cb4d33691678)
2007-10-10r24403: Remove reply_prep_legacy from send_nttrans_repliesVolker Lendecke1-48/+50
(This used to be commit a6400ca6e2301d1cfc1d6a513dc7809ed99d7b58)
2007-10-10r24401: Push reply_prep_legacy into send_nt_repliesVolker Lendecke1-48/+32
(This used to be commit 489436a65632c4e6c1001a23dd33c896e9d7dfde)
2007-10-10r24399: Change change_notify_reply to use send_nt_replies_newVolker Lendecke1-1/+1
(This used to be commit be67bb50eef88f4d56f48e785c1e5865616f5f33)
2007-10-10r24398: Convert call_nt_transact_notify_change to the new APIVolker Lendecke1-41/+31
(This used to be commit 607b3ab8bc6052770f0324b57f3db6e1c11a7005)
2007-10-10r24394: Convert call_nt_transact_rename to the new APIVolker Lendecke1-38/+27
(This used to be commit 189876a664efcfb601a8b14c21f272ed7d9f6b41)
2007-10-10r24393: Convert call_nt_transact_set_user_quota to the new APIVolker Lendecke1-38/+35
(This used to be commit 4cb60abd4c7f32a51f0e9be0d226fe09c794bed8)
2007-10-10r24391: Convert call_nt_transact_get_user_quota to the new APIVolker Lendecke1-43/+45
(This used to be commit 0e47a6643e9b3f546e1905e5152d3abe2511bcd9)
2007-10-10r24385: Convert call_nt_transact_query_security_desc to the new APIVolker Lendecke1-38/+35
(This used to be commit f44e0aac2b47ea377c2ce701426e57ee15c42fe7)
2007-10-10r24384: Convert call_nt_transact_set_security_desc to the new APIVolker Lendecke1-30/+25
(This used to be commit 925ed1e186da594b5c40d3abbad885060ca87fd0)
2007-10-10r24383: Convert call_nt_transact_ioctl to the new APIVolker Lendecke1-52/+55
(This used to be commit 8e6485e0782e9ab31b07dd9f662bd845f58faf4a)
2007-10-10r24382: Remove reply_prep_legacy from call_nt_transact_createVolker Lendecke1-83/+34
(This used to be commit 73392485f4c3bf8b4138b500b4882c492bf96358)
2007-10-10r24381: Push reply_prep_legacy into call_nt_transact_createVolker Lendecke1-68/+98
(This used to be commit ca18ba96be84ed12003af84c53cc5f2e92fcc984)
2007-10-10r24368: Push down reply_prep_legacy one levelVolker Lendecke1-55/+167
Not pretty, but necessary to convert the calls one by one (This used to be commit 523a463be427da0c3dbe01399e87b82b9f759512)
2007-10-10r24367: Push reply_prep_legacy into handle_nttransVolker Lendecke1-47/+32
(This used to be commit 8b5e51c2668799890d033a371e5b9a57b8f086c6)
2007-10-10r24361: Push reply_prep_legacy down in reply_nttrans[s]Volker Lendecke1-53/+64
(This used to be commit d97a2e91d3c44ad39e6a1ee369e1e906d98707f5)