summaryrefslogtreecommitdiffstats
path: root/source/smbd/nttrans.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't use fname after create_file has been calledVolker Lendecke2008-02-221-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...
* Add "split_ntfs_stream_name()" together with a torture testVolker Lendecke2008-01-191-0/+3
|
* Make use of talloc_pool in the main codepaths. Remove the sub-contexts.Jeremy Allison2008-01-091-8/+0
| | | | Jeremy.
* Remove superfluous parameter fd from SMB_VFS_FSET_NT_ACL().Michael Adam2008-01-061-2/+1
| | | | Michael
* Remove superfluous fd parameter from SMB_VFS_FGET_NT_ACL().Michael Adam2008-01-061-1/+1
| | | | Michael
* Now conn is part of smb_request, we don't need it asJeremy Allison2008-01-041-5/+9
| | | | | | an extra parameter. This cleans up quite a few places we were passing it around without needing it. Jeremy.
* Refactor the crypto code after a very helpful conversationJeremy Allison2008-01-041-17/+22
| | | | | | with Volker. Mostly making sure we have data on the incoming packet type, not stored in the smb header. Jeremy.
* Remove tiny code duplicationVolker Lendecke2007-12-291-1/+1
| | | | ndr_size_security_descriptor does the same as sec_desc_size
* Remove tiny code duplicationVolker Lendecke2007-12-291-1/+2
| | | | sid_size did the same as ndr_size_dom_sid
* Change the prototype of the vfs function get_nt_acl().Michael Adam2007-12-191-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
* make use of [un]marshall_sec_desc, allow for fd==-1 in get/set_secdescVolker Lendecke2007-12-161-87/+46
|
* Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke2007-12-151-3/+4
|
* Attempt to fix make test :-)Volker Lendecke2007-12-071-2/+2
|
* Pass only internal oplock request values to create_fileVolker Lendecke2007-12-071-4/+66
| | | | | Other callers (e.g. reply_open_and_X) might have other ideas of the bit shuffling
* More parameter shufflingVolker Lendecke2007-12-071-4/+4
|
* Re-arrange create_file() parametersVolker Lendecke2007-12-071-4/+4
| | | | | This changes them to be a bit closer to open_file_ntcreate and thus provides less surprises to developers
* There's no point in passing down a 0Volker Lendecke2007-12-051-4/+2
|
* Move create_file to open.cVolker Lendecke2007-12-051-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.
* Fix an uninitialized variableVolker Lendecke2007-12-051-1/+1
|
* Fix debugVolker Lendecke2007-12-051-2/+8
|
* Fix attribute calculation for ntcreate&xVolker Lendecke2007-12-051-17/+21
|
* Fix error returnsVolker Lendecke2007-12-051-2/+12
|
* Fix debugsVolker Lendecke2007-12-051-2/+18
|
* Implement create_file()Volker Lendecke2007-12-051-706/+347
| | | | | | Rip out the cores of reply_ntcreate_and_X and call_nt_transact_create Volker
* Reformatting, also allow quotas for transact_createVolker Lendecke2007-12-051-12/+38
|
* Tiny refactoringsVolker Lendecke2007-12-051-17/+12
|
* Split out sd parsingVolker Lendecke2007-12-051-5/+33
|
* ReformattingVolker Lendecke2007-12-051-9/+12
|
* Align formatting, one TALLOC_FREE is enoughVolker Lendecke2007-12-051-5/+5
|
* Move pulling the ea list out of the wayVolker Lendecke2007-12-051-14/+8
|
* ReformattingVolker Lendecke2007-12-051-10/+12
|
* Put posix semantic calculation in the same place in both routinesVolker Lendecke2007-12-051-9/+9
|
* Tiny refactoringVolker Lendecke2007-12-051-6/+8
| | | | Reformatting, consolidate oplock calculation to the same place in both routines
* Tiny refactoringVolker Lendecke2007-12-051-3/+3
|
* TALLOC_FREE earlyVolker Lendecke2007-12-051-4/+10
|
* consolidate srvstr_get_path in ntcreate_and_XVolker Lendecke2007-12-051-89/+59
|
* Tiny refactoringVolker Lendecke2007-12-051-3/+2
|
* tiny refactoringVolker Lendecke2007-12-051-4/+5
|
* In nttransact_create, we also need to check for delete readonlyVolker Lendecke2007-12-011-1/+2
|
* Make [f]get_nt_acl return NTSTATUSVolker Lendecke2007-11-131-7/+11
|
* Fix bug #5073. Allow "delete readonly = yes" to correctlyJeremy Allison2007-11-121-1/+2
| | | | | override deletion of a file. Fix from David Shaw <dshaw@jabberwocky.com> Jeremy.
* Remove the smb_read_error global variable and replaceJeremy Allison2007-11-031-1/+0
| | | | | it with accessor functions. "One global or pstring a day...." :-). Jeremy.
* Fix some cases where file_set_dosmode was being passedJeremy Allison2007-10-311-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.
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-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.
* r25309: Volker's fix for bug #4984 - samba4 torture testJeremy Allison2007-10-101-41/+71
| | | | | | to follow. Ensure we don't prepend "./" as a root directory - this is an invalid pathname for unix_convert(). Jeremy.
* r25184: Fix some C++ warnings and an uninitialized variableVolker Lendecke2007-10-101-2/+2
|
* r25138: More pstring elimination. Add a TALLOC_CTX parameterJeremy Allison2007-10-101-11/+13
| | | | | to unix_convert(). Jeremy.
* r25135: Remove one END_PROFILE(SMBntcreateX) from call_nt_transact_create() ↵Günther Deschner2007-10-101-1/+0
| | | | | | | | | | which appears to be a leftover. Should fix the build with profiling enabled. Jeremy, please check. Guenther
* r25117: The mega-patch Jerry was waiting for. Remove all pstrings fromJeremy Allison2007-10-101-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.
* r25111: Move to talloced pathnames on most code paths.Jeremy Allison2007-10-101-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.