summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2008-02-02Get rid of read_socket_with_timeoutVolker Lendecke1-5/+14
(This used to be commit f9c8ac83ff42137d2101d3bb17e5dcc3c3d70a8f)
2008-02-02Convert receive_smb_talloc to NTSTATUSVolker Lendecke1-33/+28
(This used to be commit ddbdd11a49fba9ec4834807dec385cdf3120ce00)
2008-02-02Convert receive_smb_raw_talloc to NTSTATUSVolker Lendecke1-61/+29
(This used to be commit 187707591ffa2668aecd4857cb2ef2cd20bd6b08)
2008-02-02Convert receive_smb_raw_talloc_partial_read to NTSTATUSVolker Lendecke1-59/+47
(This used to be commit 9a82350ba92bf5fc4f2968d5130bcb2118e7a981)
2008-02-02Convert read_packet_remainder to return NTSTATUSVolker Lendecke1-37/+44
(This used to be commit 667864d442ea7e1faed7b032315db8856fa91481)
2008-02-02Convert read_packet_remainder to use read_socket_with_timeout_ntstatusVolker Lendecke1-8/+20
(This used to be commit fff31f8f35ad26d67e78b9a71cfd35670aa9ac5f)
2008-02-02Convert read_smb_length to return NTSTATUSVolker Lendecke1-9/+3
(This used to be commit 5750c3a51b4ddac635a98195d1621b24f91bad3f)
2008-02-02Convert read_smb_length_return_keepalive to return NTSTATUSVolker Lendecke1-11/+17
(This used to be commit 73a79a957a33a8761acf54598ce71e3604ecf3c5)
2008-01-31Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into ↵Alexander Bokovoy2-11/+6
dmapi-integration (This used to be commit d46fc35dd4e22ecd777800a8cdb6c31763d0fac4)
2008-01-30Re-enable async I/O for non-TSM systemsVolker Lendecke2-11/+6
The logic was wrong: A "SMB_VFS_AIO_FORCE()==False" disabled async I/O, whereas a "SMB_VFS_AIO_FORCE()==True" should enforce it regardless of other settings. Alexander, please check! (This used to be commit 46882ad9927c95caadeb7fb03c1d7491bbe1fb22)
2008-01-29Fix BOOL introduced by last commitAlexander Bokovoy1-1/+1
(This used to be commit 8afb7133e956ec963ac55720fb297b4d5b44702c)
2008-01-29Merge DMAPI fixes from TridgeAlexander Bokovoy1-16/+56
Support cases when existing DMAPI session is stale. In this case we are creating another one. The code differs from 3-0_ctdb branch in that we fail when it is not possible to create more sessions and pretend that file is offline. This allows to escape endless loop in vfs_tsmsm.c. (This used to be commit 5efb57d904e25e68b09a567e260292439ad9c095)
2008-01-29Merge branch 'ctdb-merge' into dmapi-integrationAlexander Bokovoy2-133/+78
(This used to be commit 58dce4cdf277c8c68865185d9d8b4faea996dd3e)
2008-01-27Remove an unused external referenceVolker Lendecke1-1/+0
(This used to be commit 147033b9dff7160ff324fa52aba1f054f962961b)
2008-01-26Fix uninitialized variablesVolker Lendecke1-1/+2
Thanks to Corinna Vinschen (This used to be commit aba8c17599f0be82cff33229bb107814d88faafe)
2008-01-24Fix the same bug with user -> user_obj.Jeremy Allison1-1/+7
Jeremy. (This used to be commit c5edf7456955471b8590c2cfa67c7f47a387cdf0)
2008-01-24Fix a really subtle old, old bug :-). When canonicalizing theJeremy Allison1-3/+9
NT ACL into a POSIX one, if the group being set is the primary group of the file, map it into a SMB_ACL_GROUP_OBJ, not a SMB_ACL_GROUP. Otherwise we get an extra bogus group entry in the POSIX ACL. Jeremy. (This used to be commit 4d302254fdfce2c267cf6b21f662d5aa2dc9c72c)
2008-01-24Correctly set flags in ACE's inherited from parent. Still one bugJeremy Allison1-3/+35
left to find then I'll back-port to 3.0.28. Jeremy. (This used to be commit 3df2f7ca782e418703d82f7a1f3c035a365f9589)
2008-01-24Make explicit in debug we're ignoring flags from the parent SD.Jeremy Allison1-6/+10
Jeremy (This used to be commit 58cfa4b1bdc1ce30cc3befb342cc98ac0e283585)
2008-01-24Add debug messages to trace this if needed.Jeremy Allison1-0/+14
Jeremy. (This used to be commit b628269b3260661cb4eeeab8c533b3129827ba62)
2008-01-24The checks for OI and CI were just wrong.... Fix them. Thanks toJeremy Allison1-9/+4
Jim for testing this. Jeremy. (This used to be commit e898789e0d819df05b14bcedfa1d230c7a983440)
2008-01-24First part of fix for bug #4929 - worked out by jmcd.Jeremy Allison1-80/+29
Cope with protected ACL set correctly. Jeremy. (This used to be commit f5e50f42e7c79b4f8857602457db5b97886bd19e)
2008-01-24Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into ctdb-mergeAlexander Bokovoy11-155/+797
(This used to be commit 42d06d41bf2e9fb094f6064dc04f549d880b5f8d)
2008-01-23read_socket_with_timeout has timeout=0 handlingVolker Lendecke1-23/+6
(This used to be commit 7101026061c470ed962267b43ac0aa67cc761a64)
2008-01-23strtok -> strtok_rVolker Lendecke2-6/+11
(This used to be commit fd34ce437057bb34cdc37f4b066e424000d36789)
2008-01-23Remove two unused variablesVolker Lendecke1-1/+0
(This used to be commit f12ac1ecedd6634d8ccc54d8fce8382514e3322f)
2008-01-22Get Samba version or capability information from WindowsCorinna Vinschen1-1/+3
On Jan 22 13:31, Volker Lendecke wrote: > On Tue, Jan 22, 2008 at 11:33:17AM +0100, Corinna Vinschen wrote: > > Right. I changed samba_gitcommitdate from time_t to NTTIME and shortened > > samba_version_string to 28 bytes. New patch below. > > Ok, pushed with some modifications. You might want to review > that. Reviewed and tested. Looks good, thank you! Below you'll find a tiny patch to add the git commit date. It seems I simply missed its existence in version.h :( Tested on Windows XP. Thanks, Corinna * source/smbd/trans2.c (samba_extended_info_version): Fill out samba_gitcommitdate member with GIT commit timestamp. (This used to be commit a33d0797585b5cdd304ac1eb6966b9c7c799bab6)
2008-01-22Move samba_extended_info_version to smbd/trans2.cVolker Lendecke1-0/+32
This is right now only used there, and in version.c it gave linker errors because some binaries (e.g. smbmnt) don't link in time.o (This used to be commit 1f0eaaa5911f893c822465a26fe49ab65afb0730)
2008-01-22Get Samba version or capability information from WindowsCorinna Vinschen1-0/+7
On Jan 21 16:18, Danilo Almeida wrote: > Corina wrote: > > > + time_t samba_gitcommitdate; > > And: > > > + SIVAL(pdata,28,extended_info.samba_gitcommitdate); > > + memcpy(pdata+32,extended_info.samba_version_string,32); > > Note that you are dropping bits on a system w/64-bit time_t, and that this has the 2038 problem. Right. I changed samba_gitcommitdate from time_t to NTTIME and shortened samba_version_string to 28 bytes. New patch below. Thanks, Corinna (This used to be commit 28aa1c199d3a22cda34afcaab49c0561eeb0abcb)
2008-01-22Hide streams from the EA APIVolker Lendecke1-2/+6
(This used to be commit e9bb3d5067b74a29beb778f85687829778e42b5b)
2008-01-22Fix a ton of IBM checker uninitialized variable warningsVolker Lendecke1-2/+1
SET_STAT_INVALID only sets nlink, not the other fields We might consider to change SET_STAT_INVALID to always do ZERO_STRUCT (This used to be commit 8cf8c5b2034fe093b5db7f069bc6be8d328399bf)
2008-01-22Fix get_ea_names_from_file for many EAsVolker Lendecke1-1/+1
Found by the IBM checker (This used to be commit 8741a9b37496e78b28d59d844aaba12f269171e0)
2008-01-22Fix a segfaultVolker Lendecke1-1/+1
Found by the IBM checker. Jeremy, you changed this from 'dirname == 0' which does not make sense at all in the old code to '!dirname == 0' which from my point of view makes even less sense, because the precedence of ! is according to Harbison/Steele higher than the precedence of ==. Please check that the code now actually does what it's supposed to do. Thanks! (This used to be commit c8def5564739c4c754001f84fcfb77f1093b96c3)
2008-01-21Add SMB_VFS_FS_CAPABILITIESVolker Lendecke1-9/+1
It turns out that this is a necessary operation, separate from statvfs. statvfs can fail during tcon, so conn->fs_capabilities would never see that we support streams on a particular share. James, can you check that I got the darwin variant right? Thanks! (This used to be commit 3ad798d803b3b023533bb48e6993885f22b96095)
2008-01-20Fix some "set but never used" warningsVolker Lendecke1-3/+1
(This used to be commit 4a6dadc5178f4861e9c032321939db3b639734b5)
2008-01-20Free case_state earlierVolker Lendecke1-0/+2
Found by a "set but never used" warning. Thanks to talloc_tos() this was not really a bug, but this way the code becomes much clearer. (This used to be commit b326f11dc39a8ce20d957aac976be0cf7108ba9d)
2008-01-20Activate SMB_QUERY_FILE_STREAM_INFOVolker Lendecke1-5/+6
gcolley was right, my nt4 does not blue screen with it (This used to be commit 9f2b5dc1865ca109e1e34c91548479ad9b26f450)
2008-01-20NT_STATUS_OBJECT_NAME_NOT_FOUND also means "no streams around :-)"Volker Lendecke1-1/+2
(This used to be commit 96b9a7b3eb92c9f133a3f43ffc4d57d0212e4ebd)
2008-01-20Don't test split_ntfs_stream_nameVolker Lendecke1-3/+0
This is a hot code path, and if it has a :, the name will be split later on anyway. (This used to be commit 9f7f6b812d89decea1456ccdc37978e645d11a63)
2008-01-19Couple of minor fixes for POSIX pathname processing in theJeremy Allison2-9/+11
new stream code. (1) In smbd/filename, don't split the name at ':' if we know it's a posix path (this should be parameterized....). (2). When calling posix_mkdir, we get the flag FILE_FLAG_POSIX_SEMANTICS passed to open_directory(). I know for a posix client lp_posix_pathnames should be true (which is checked for in is_ntfs_stream_name() but we have an explicit flag here, so let's use it. Jeremy. (This used to be commit 7bb7a0def6518784befa75e5303289d2b4d36dd4)
2008-01-19Add streams supportVolker Lendecke4-24/+454
This is the core of the streams support. The main change is that in files_struct there is now a base_fsp pointer that holds the main file open while a stream is open. This is necessary to get the rather strange delete semantics right: You can't delete the main file while a stream is open without FILE_SHARE_DELETE, and while a stream is open a successful unlink of the main file leads to DELETE_PENDING for all further access on the main file or any stream. (This used to be commit 6022873cc155bdbbd3fb620689715f07a24d6ed1)
2008-01-19Add "split_ntfs_stream_name()" together with a torture testVolker Lendecke1-0/+3
(This used to be commit d813bd9e02d9baf916eb96c478be89f0c435e07c)
2008-01-19Add the STREAMINFO vfs callVolker Lendecke1-13/+99
Based on jpeach's work, modified the streaminfo prototype Make use of it in trans2.c together with marshall_stream_info() (This used to be commit c34d729c7c0600a8f11bf7e489a634a4e37fe88e)
2008-01-19Add get_ea_names_from_file to sanely list posix xattrsVolker Lendecke1-49/+142
Refactor get_ea_list_from_file to use that. (This used to be commit aec357a456798050abe565d2a744ed5f17ad5901)
2008-01-19Make get_ea_value publicVolker Lendecke1-8/+15
(This used to be commit 0aa406bbba8699063ea3758b19dca24cf42ff15a)
2008-01-18Actually test vl's new code and make it work to fix the build farm :-).Jeremy Allison1-8/+12
Jeremy. (This used to be commit 63defd3e9d4ba3f02f36ec5ad7b73463f31962a1)
2008-01-18Always return nlink=1 for directoriesVolker Lendecke1-7/+2
I did not test it, but it should not affect cifsfs, there are special posix calls that also return the stat information unfiltered. (This used to be commit e96cf1309e45628f4c27d03f77a4eef5e00602df)
2008-01-18Merge DMAPI fixes from CTDB SambaAlexander Bokovoy2-133/+78
(This used to be commit cf1f90ad7a79dbe5926018790bb50d4e3b36cc7b)
2008-01-17Finally enable pidl generated SAMR & NETLOGON headers and clients.Günther Deschner1-6/+6
Guenther (This used to be commit f7100156a7df7ac3ae84e45a47153b38d9375215)
2008-01-17Remove is_remotestorage() call from VFS. We already have statvfs() there to ↵Alexander Bokovoy1-6/+4
handle FS capabilities. As discussed with Volker, it is better to calculate FS capabilities at connection time. We already do this with help of VFS statvfs() call which allows to fill-in system-specific attributes including FS capabilities. So just re-use it if you want to represent additional capabilities in your modules. The only caution is that you need to call underlying statvfs() call to actually get system-specific capabilities (and other fields) added. Then add module-specific ones. (This used to be commit e342ca0d931f9a5c8ec9e472dc9c63f1fe012b3a)