summaryrefslogtreecommitdiff
path: root/source3/smbd/trans2.c
AgeCommit message (Collapse)AuthorFilesLines
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)
2007-10-10r24137: Convert call_trans2findfirst to the new APIVolker Lendecke1-33/+55
(This used to be commit 238edebab71ed1596af82f4c8611432f9156bd18)
2007-10-10r24136: get_lanman2_dir_entry() does not need access to inbuf/outbufVolker Lendecke1-39/+49
It did not use inbuf anyway. Outbuf was used for alignment and to the flags2. The alignment works ok if we align relative to base_data because this and outbuf are both malloc'ed, and we put send_trans2_replies aligns out_data properly relative to the start of the outbuf. I don't know if the explicit align_string() calls in get_lanman2_dir_entry are really necessary. I think that srvstr_push also does the same. Please also note that this changes dst_len in srvstr_push from -1 to the real length remaining. Volker (This used to be commit 9b1614f8cb415c15032e6a34f2da5df026f92e6e)
2007-10-10r24135: Convert call_trans2open to the new APIVolker Lendecke1-37/+73
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-10r24134: talloc smb_request for handle_trans2Volker Lendecke1-6/+27
When starting to convert the individual trans2 subcalls, I need the new API conventions to be present there. This means that those calls fill in req->outbuf when there's something to ship (This used to be commit d9eef977dc80d6ee71898efc1ff736afb75eba0c)
2007-10-10r24130: Explicitly pass flags2 to srvstr_pushVolker Lendecke1-23/+62
This is in preparation of the trans2 conversion: srvstr_push should not look at inbuf directly. (This used to be commit 5fd7e6a3821bea26d352e3edc23b7a216b1200e5)
2007-10-10r24120: add a file_id_create() hook into the VFS layerStefan Metzmacher1-4/+10
it's needed for some cluster filesystems to overload this function. metze (This used to be commit cdaa24e8047399002e4b287a31a8340a665e580f)
2007-10-10r24106: Pass fnum instead of buf/offset into get_rpc_pipe_pVolker Lendecke1-1/+1
(This used to be commit eb353412c60fc21a31530d9678505470ffbf11ce)
2007-10-10r24102: Pass the fid instead of inbuf and an offset to file_fsp.Volker Lendecke1-4/+4
This removes the buf==NULL condition in file_fsp(), but wherever it is called we do have a buffer anyway. Volker (This used to be commit d70a1f82fed64fa332f16407bea7c6671f48c59a)
2007-10-10r24101: Move prohibited_ea_names[] into samba_private_attr_name()Volker Lendecke1-6/+6
Minor cleanup (This used to be commit 04879717229d5b74b94b79a962cca5e9624648bc)
2007-10-10r23942: Fix issue found by Shlomi Yaakobovich <Shlomi@exanet.com> whereJeremy Allison1-5/+6
invalid names sent as a resume name were incorrectly mapped into . and .. Ensure they really *are . and .. Jeremy. (This used to be commit 78d0c5194fe42ad4f096657e2210a15541303a2a)
2007-10-10r23935: We were lying to the client in the case of POSIX_UNLINKJeremy Allison1-16/+51
if a Windows client had the file open. We were setting delete on close and returning "ok". The POSIX client then believed the file was gone (and it wasn't). Fix this to return SHARING_VIOLATION if there is an existing NTcreateX open on the file and someone calls POSIX_UNLINK. Still one more Cthon test to fix but getting closer now. Should be in 3.0.25c also. Jeremy. (This used to be commit 24e625a615447c025b73fed2d3db03c1f11ae596)
2007-10-10r23877: Fix two segfaults in (very unlikely) error paths, found by the IBMVolker Lendecke1-0/+2
checker. (This used to be commit 33068885e62f3681644c128e381822d48298ea05)
2007-10-10r23855: Setting the allocation size updates the modified timeJeremy Allison1-12/+29
as a write does. Fix bug #4779. Jeremy. (This used to be commit ed0e2174a895b25ce2b4e8ffd912ad57b31dd2e9)
2007-10-10r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell1-2/+1
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r23761: Rename reduce_name to check_reduced_nameVolker Lendecke1-1/+1
The function name reduce_name is misleading, making the user believe it changes an argument. (This used to be commit 68234f0bc6fb4d6d99ae94ff067db118c60804aa)
2007-10-10r23727: Explicitly pass down FLAGS2 to srvstr_get_path.Volker Lendecke1-8/+24
Next step is to remove the bug that in the trans2 code we use the inbuf as the base pointer to decide whether we need ucs2 alignment where we need to use the beginning of the params buffer Jeremy, last one for today to reviw :-) (This used to be commit 18078b9faa3820fb34604063c9079c1ebe3ad47f)
2007-10-10r23726: Explicitly pass down the FLAGS2 field to srvstr_pull_buf. The nextVolker Lendecke1-2/+4
checkin will pull this up to srvstr_get_path. At that point we can get more independent of the inbuf, the base_ptr in pull_string will only be used to satisfy UCS2 alignment constraints. (This used to be commit 836782b07bf133e9b2598c4a089f1c810e4c7754)
2007-10-10r23724: Reduce access to the global inbuf a tiny bit. Add a struct smb_requestVolker Lendecke1-30/+53
that contains some of the fields from the SMB header, removing the need to access inbuf directly. This right now is used only in the open file code & friends, and creating that header is only done when needed. This needs more work, but it is a start. Jeremy, I'm only checking this into 3_0, please review before I merge it to _26. Volker (This used to be commit ca988f4e79e977160d82e86486972afd15d4acf5)
2007-10-10r23500: Two changes to survive the now activated test for rename_internals_fsp:Volker Lendecke1-3/+3
With the target being open we have to return NT_STATUS_ACCESS_DENIED and root_fid != 0 leads to NT_STATUS_INVALID_PARAMETER (This used to be commit b599e5b1e10bdf825b2ce53de4a6ec35726d00f6)
2007-10-10r23183: Check in a change made by Tridge:Volker Lendecke1-4/+4
This replaces the internal explicit dev/ino file id representation by a "struct file_id". This is necessary as cluster file systems and NFS don't necessarily assign the same device number to the shared file system. With this structure in place we can now easily add different schemes to map a file to a unique 64-bit device node. Jeremy, you might note that I did not change the external interface of smb_share_modes.c. Volker (This used to be commit 9b10dbbd5de8813fc15ebbb6be9b18010ffe8139)
2007-10-10r23106: Use lchown for symlinks.Jeremy Allison1-2/+11
Jeremy. (This used to be commit b98175440b2c235fe223b4375441f15ea027a5b2)
2007-10-10r23100: Implement the delete on close semantics I've just tested forJeremy Allison1-2/+3
in Samba4 smbtorture. Fix rename on an open file handle. Needed for 3.0.25a. Jeremy. (This used to be commit a301467d5f645dada27093ddfd74890b88bb4ce8)
2007-10-10r23087: Fix POSIX setfilepathinfo to use lstat, not stat.Jeremy Allison1-9/+21
Still missing lchown (will add this for 3.0.26). Don't merge for 3.0.25a - possibly 3.0.25b (if it exists). Jeremy. (This used to be commit f546750176a22cdd7298a73afc81587923baaff9)
2007-10-10r23014: For all branches, ensure that if we're blocked on a POSIXJeremy Allison1-2/+6
lock we know nothing about that we retry the lock every 10 seconds instead of waiting for the standard select timeout. This is how we used to (and are supposed to) work. Jeremy. (This used to be commit fa18fc25a50cf13c687ae88e7e5e2dda1120e017)
2007-10-10r22920: Add in the UNIX capability for 24-bit readX, as discussedJeremy Allison1-1/+4
with the Apple guys and Linux kernel guys. Still looking at how to do writeX as there's no recvfile(). Jeremy. (This used to be commit a53268fb2082de586e2df250d8ddfcff53379102)
2007-10-10r22846: Chunk one to replace message_send_pid with messaging_send: Deep insideVolker Lendecke1-2/+4
locking/locking.c we have to send retry messages to timed lock holders. The majority of this patch passes a "struct messaging_context" down there. No functional change, survives make test. (This used to be commit bbb508414683eeddd2ee0d2d36fe620118180bbb)
2007-10-10r22542: Move over to using the _strict varients of the tallocJeremy Allison1-1/+1
calls. No functional changes. Looks bigger than it is :-). Jeremy. (This used to be commit f6fa3080fee1b20df9f1968500840a88cf0ee592)
2007-10-10r22493: Fix horrible memory corruption bug with CIFS POSIX open/mkidr.Jeremy Allison1-0/+2
Found by SteveF + valgrind :-). Jerry - essential for rc3. Jeremy. (This used to be commit b01c1c4618fe0ff9fd9bac7ed780a4676ea1ba7a)
2007-10-10r22491: Fix the build (3.0.25 and 3.0 are different here).Jeremy Allison1-1/+1
Jeremy. (This used to be commit c34c291194f34a4b68c1b149dd513b79295a7f1c)
2007-10-10r22490: Fix a couple of bugs found whist investigating CSC Vista issues.Jeremy Allison1-4/+92
Ensure we correctly NULL out allocation size fields. Allow QFILEINFO on pipes (Vista bug ?). Jerry - don't automatically merge for 3.0.25. Jeremy. (This used to be commit a27577815201101de4ca5c8375b7f768b6127fb2)
2007-10-10r22391: Looks bigger than it is. Make "inbuf" availableJeremy Allison1-20/+21
to all callers of smb_setlen (via set_message() calls). This will allow the server to reflect back the correct encryption context. Jeremy. (This used to be commit 2d80a96120a5fe2fe726f00746d36d85044c4bdb)
2007-10-10r22266: Fix bug #4512 - we were returning a volume label greater thanJeremy Allison1-1/+3
32 unicode chars. Windows XP doesn't like that :-). Jeremy (This used to be commit e59b5276b56d6963ddd0598bbd1b15426d2d13e8)
2007-10-10r22064: Fix the DFS code to work better with Vista clients. AllowJeremy Allison1-2/+3
"host msdfs = true" to be set in the [global] section and allow Vista to see shares with "msdfs root = yes" and "msdfs root = no" off the same server. Down to an error message really :-). Jeremy. (This used to be commit 1a0f69bb21fd03a18514dfc93c84568708144e28)
2007-10-10r22010: Now I'm looking at mangling again, make sureJeremy Allison1-16/+31
that we mangle any illegal names before doing any wildcard matches. That way lies least suprises. Don't merge this for 3.0.25, too dangerous. Thanks. Jeremy. (This used to be commit 8e15ef476cada7a900ff17c7ba70c729d56718bd)
2007-10-10r22001: change prototype of dump_data(), so that it takes unsigned char * now,Stefan Metzmacher1-2/+2
which matches what samba4 has. also fix all the callers to prevent compiler warnings metze (This used to be commit fa322f0cc9c26a9537ba3f0a7d4e4a25941317e7)
2007-10-10r21991: I hate Steve French :-). Add support for encryptionJeremy Allison1-3/+9
contexts.... Jeremy. (This used to be commit ae8f3649f773b8a8dcb55921536d038d3475322e)
2007-10-10r21952: Fix critical (!) error found by IBM checker.Jeremy Allison1-22/+28
Missing break statements meant that no info levels would ever be returned correctly from POSIX open/mkdir. Jeremy. (This used to be commit ae5761ccc66b35b66ca4fa90aef02d8be1564737)
2007-10-10r21950: After discussion with the Apple and Linux client maintainers,James Peach1-1/+5
changing the FindFirst response for the UNIX_INFO2 level to include a length field before the name. The name is not required to be null terminated. The length field does not count any null. Also add call to chflags(2) in the default VFS module so that this will work be default on BSD-derived platform. Add UNIX-INFO2 test to the build farm to get some non-BSD coverage. Jeremy and Jerry, please review for inclusion in 3.0.25. (This used to be commit e7b21b1ef3f79c0df2bae5f15c345ef74292c404)
2007-10-10r21898: Added test command, fixed first valgrind bugs.Jeremy Allison1-2/+2
Now to investigate why it doesn't work :-). Jeremy. (This used to be commit 73f7c6cef8371ad63eb1dc3e79bfc78503dbd7a4)
2007-10-10r21897: Add in a basic raw NTLM encrypt request. NowJeremy Allison1-1/+4
for testing. Jeremy. (This used to be commit 783a7b3085a155d9652cd725bf2960cd272cb554)
2007-10-10r21882: The server part of the code has to use an AUTH_NTLMSSP struct,Jeremy Allison1-0/+27
not just an NTLMSSP - grr. This complicates the re-use of common client and server code but I think I've got it right. Not turned on of valgrinded yet, but you can see it start to take shape ! Jeremy. (This used to be commit 60fc9c0aedf42dcd9df2ef9f1df07eaf3bca9bce)
2007-10-10r21800: Check-in the DFS rewrite. I am still testing this but itJeremy Allison1-14/+29
works from smbclient and Windows, and I am promising to support and fix both client and server code moving forward. Still need to test the RPC admin support but I haven't changed that code. Jeremy. (This used to be commit 7a7862c01d07796ef206b255c676ad7dc2cc42fc)
2007-10-10r21792: Fix crash bug triggered by Excel reported by Jerry.Jeremy Allison1-1/+1
Bad cut-n-paste on rewrite of timestamps. Jeremy. (This used to be commit 1809e0866ae135af1d5ea36a8534e1678ee9b27d)
2007-10-10r21783: Add in the "create info" field to the replyJeremy Allison1-22/+32
from POSIX_OPEN and POSIX_MKDIR as specified by Stevef in the wikki (extra 4 byte field). Also fix horrible bug in James's code (James you should review this for your Apple patch tree) where he failed to allocate the correct return memory size when returning a INFO2 struct. Added #define for the size of the INFO2 struct and made sure we allocate the correct size for return. Jeremy. (This used to be commit d88bc59cb4d5e8851b0856c67ed878ba8bd84552)