summaryrefslogtreecommitdiff
path: root/source3/smbd/nttrans.c
AgeCommit message (Collapse)AuthorFilesLines
2008-04-14Remove two pointless else branchesVolker Lendecke1-7/+5
(This used to be commit ed343114cd0844a7fd14b45f95c0f43a6d172a42)
2008-04-07Rewrite the wrap checks to deal with gcc 4.x optimisations.Jeremy Allison1-38/+51
Karolin, please pull once Volker has reviewed. Thanks. Jeremy. (This used to be commit 09852899cadc48abe2f2651ecbceaf881198e648)
2008-04-07smbd: implement the strange write time update logicStefan Metzmacher1-1/+1
We now never call file_ntimes() directly, every update is done via smb_set_file_time(). This let samba3 pass the BASE-DELAYWRITE test. The write time is only updated 2 seconds after the first write() on any open handle to the current time (not the time of the first write). Each handle which had write requests updates the write time to the current time on close(). If the write time is set explicit via setfileinfo or setpathinfo the write time is visible directly and a following close on the same handle doesn't update the write time. metze (This used to be commit 2eab212ea2e1bfd8fa716c2c89b2c042f7ba12ea)
2008-04-01smbd: ignore nttrans renames as w2k3 doesStefan Metzmacher1-24/+3
This lets us pass the RAW-RENAME test. metze Signed-off-by: Michael Adam <obnox@samba.org> (This used to be commit 2d50a1fef022023588e9963131951f8f3e4c7c23)
2008-03-11Using Metze's S4 nttrans rename test, the nttrans renameJeremy Allison1-1/+1
behaves the same as the trans2 one. Jeremy. (This used to be commit c4fa4917dad97c5047f7336c6675739b44da256b)
2008-03-11Try and fix bug #5315, as well as S4 torture tests RAW-OPLOCK BATCH19,Jeremy Allison1-2/+3
BATCH20 and RAW-RENAME. Jeremy. (This used to be commit 9065792d4bc42522f12f9732de3c0ad82c72a2d3)
2008-02-22Don't use fname after create_file has been calledVolker Lendecke1-5/+5
create_file calls unix_convert internally, so modifies fname. So we can't use "fname" after create_file has returned. Use fsp->fsp_name instead. Found during a lengthy debugging session with Karolin testing the xattr_tdb module... (This used to be commit 183fe570469963923864b732817a87f8660341ed)
2008-01-19Add "split_ntfs_stream_name()" together with a torture testVolker Lendecke1-0/+3
(This used to be commit d813bd9e02d9baf916eb96c478be89f0c435e07c)
2008-01-09Make use of talloc_pool in the main codepaths. Remove the sub-contexts.Jeremy Allison1-8/+0
Jeremy. (This used to be commit bc932b8ad4396f76b71c43efe9a6346f89c3632c)
2008-01-06Remove superfluous parameter fd from SMB_VFS_FSET_NT_ACL().Michael Adam1-2/+1
Michael (This used to be commit 4f2d139a186048f08180378a877b69d2f80ad51f)
2008-01-06Remove superfluous fd parameter from SMB_VFS_FGET_NT_ACL().Michael Adam1-1/+1
Michael (This used to be commit c0c7c1223da29c68359dac64a340c1c710d5f3d2)
2008-01-04Now conn is part of smb_request, we don't need it asJeremy Allison1-5/+9
an extra parameter. This cleans up quite a few places we were passing it around without needing it. Jeremy. (This used to be commit 8f36def18e9f980e8db522e1de41e80cfd5f466e)
2008-01-04Refactor the crypto code after a very helpful conversationJeremy Allison1-17/+22
with Volker. Mostly making sure we have data on the incoming packet type, not stored in the smb header. Jeremy. (This used to be commit c4e5a505043965eec77b5bb9bc60957e8f3b97c8)
2007-12-29Remove tiny code duplicationVolker Lendecke1-1/+1
ndr_size_security_descriptor does the same as sec_desc_size (This used to be commit bc3bd7a8e7c6e9e27acb195c86abb92c0f53112f)
2007-12-29Remove tiny code duplicationVolker Lendecke1-1/+2
sid_size did the same as ndr_size_dom_sid (This used to be commit 8aec5d09ba023413bd8ecbdfbc7d23904df94389)
2007-12-19Change the prototype of the vfs function get_nt_acl().Michael Adam1-1/+1
Up to now, get_nt_acl() took a files_struct pointer (fsp) and a file name. All the underlying functions should need and now do need (after the previous preparatory work), is a connection_struct and a file name. The connection_struct is already there in the vfs_handle passed to the vfs functions. So the files_struct argument can be eliminated. This eliminates the need of calling open_file_stat in a couple of places to produce the fsp needed. Michael (This used to be commit b5f600fab53c9d159a958c59795db3ba4a8acc63)
2007-12-16make use of [un]marshall_sec_desc, allow for fd==-1 in get/set_secdescVolker Lendecke1-87/+46
(This used to be commit 585f5f8831f13260808a82611656fc6ca5caee81)
2007-12-15Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke1-3/+4
(This used to be commit bb35e794ec129805e874ceba882bcc1e84791a09)
2007-12-07Attempt to fix make test :-)Volker Lendecke1-2/+2
(This used to be commit de3a3e3745e58cbfa777ae426e38bad3d74230d4)
2007-12-07Pass only internal oplock request values to create_fileVolker Lendecke1-4/+66
Other callers (e.g. reply_open_and_X) might have other ideas of the bit shuffling (This used to be commit 6a58d823e51ccc8efd6682005e367c9096abc993)
2007-12-07More parameter shufflingVolker Lendecke1-4/+4
(This used to be commit 8f70f691ffa3e171a73d04a1c867aa6fca4d4583)
2007-12-07Re-arrange create_file() parametersVolker Lendecke1-4/+4
This changes them to be a bit closer to open_file_ntcreate and thus provides less surprises to developers (This used to be commit d000258b96b9bb714efdfe982947370a6dfb5d55)
2007-12-05There's no point in passing down a 0Volker Lendecke1-4/+2
(This used to be commit 525a6887afcae8d8e740cf194a412c21da899649)
2007-12-05Move create_file to open.cVolker Lendecke1-477/+0
I'm checking in this long sequence of micro-checkins for review, the overall patch from 3b057022a5 to this is not too large. (This used to be commit 51db8d09a4652d626c093f7bacf075c1c168fc33)
2007-12-05Fix an uninitialized variableVolker Lendecke1-1/+1
(This used to be commit ca3add2d65a242029f08482f3b82ea56b7059538)
2007-12-05Fix debugVolker Lendecke1-2/+8
(This used to be commit c268be54ee3bdd59980a6217a0e8e59dd3ec5ce2)
2007-12-05Fix attribute calculation for ntcreate&xVolker Lendecke1-17/+21
(This used to be commit 9ef81cb14952cad96c71409c04a2cc6579e3311c)
2007-12-05Fix error returnsVolker Lendecke1-2/+12
(This used to be commit f5cdaacd1784d3801d638fa9984b52c57dad6ebd)
2007-12-05Fix debugsVolker Lendecke1-2/+18
(This used to be commit 77b31ef44a9f7c1c9b80d90653a49affee8e0372)
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)