summaryrefslogtreecommitdiffstats
path: root/source/smbd/trans2.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't use fname after create_file has been calledVolker Lendecke2008-02-221-2/+2
| | | | | | | | 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...
* Fix uninitialized variablesVolker Lendecke2008-01-261-1/+2
| | | | Thanks to Corinna Vinschen
* Get Samba version or capability information from WindowsCorinna Vinschen2008-01-221-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.
* Move samba_extended_info_version to smbd/trans2.cVolker Lendecke2008-01-221-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
* Get Samba version or capability information from WindowsCorinna Vinschen2008-01-221-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
* Hide streams from the EA APIVolker Lendecke2008-01-221-2/+6
|
* Fix get_ea_names_from_file for many EAsVolker Lendecke2008-01-221-1/+1
| | | | Found by the IBM checker
* Activate SMB_QUERY_FILE_STREAM_INFOVolker Lendecke2008-01-201-5/+6
| | | | gcolley was right, my nt4 does not blue screen with it
* Add the STREAMINFO vfs callVolker Lendecke2008-01-191-13/+99
| | | | | | Based on jpeach's work, modified the streaminfo prototype Make use of it in trans2.c together with marshall_stream_info()
* Add get_ea_names_from_file to sanely list posix xattrsVolker Lendecke2008-01-191-49/+142
| | | | Refactor get_ea_list_from_file to use that.
* Make get_ea_value publicVolker Lendecke2008-01-191-8/+15
|
* Actually test vl's new code and make it work to fix the build farm :-).Jeremy Allison2008-01-181-8/+12
| | | | Jeremy.
* Always return nlink=1 for directoriesVolker Lendecke2008-01-181-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.
* Remove is_remotestorage() call from VFS. We already have statvfs() there to ↵Alexander Bokovoy2008-01-171-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.
* Add support for offline files support, remote storage, and Async I/O force ↵Alexander Bokovoy2008-01-161-8/+15
| | | | | | | | | | | | | | | | operations to VFS Offline files support and remote storage are for allowing communication with backup and archiving tools that mark files moved to a tape library as offline. We translate this info into corresponding CIFS offline file attribute and mark an exported volume as remote storage. Async I/O force is to allow selective redirection of I/O operations to asynchronous processing in case it is viable at VFS module discretion. It is needed for proper handling of offline files as performing regular I/O on offline file will block smbd. Signed-off-by: Alexander Bokovoy <ab@samba.org>
* use talloc_tos in a few more placesVolker Lendecke2008-01-101-1/+1
|
* Make use of talloc_pool in the main codepaths. Remove the sub-contexts.Jeremy Allison2008-01-091-20/+5
| | | | Jeremy.
* Remove redundant parameter fd from SMB_VFS_FSETXATTR().Michael Adam2008-01-081-1/+1
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_FREMOVEXATTR().Michael Adam2008-01-081-1/+1
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_FLISTXATTR().Michael Adam2008-01-081-1/+1
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_FGETXATTR().Michael Adam2008-01-081-1/+1
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_SYS_ACL_GET_FD().Michael Adam2008-01-071-1/+1
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_FSTAT().Michael Adam2008-01-071-2/+2
| | | | Michael
* Now conn is part of smb_request, we don't need it asJeremy Allison2008-01-041-4/+6
| | | | | | an extra parameter. This cleans up quite a few places we were passing it around without needing it. Jeremy.
* We dont' modify the smb header for crypto anymore.Jeremy Allison2008-01-041-1/+1
| | | | Jeremy.
* Refactor the crypto code after a very helpful conversationJeremy Allison2008-01-041-28/+41
| | | | | | with Volker. Mostly making sure we have data on the incoming packet type, not stored in the smb header. Jeremy.
* Convert call_trans2open to create_file()Volker Lendecke2008-01-021-57/+16
|
* Allow encryption context setup on IPC$.Jeremy Allison2007-12-291-7/+27
| | | | Jeremy.
* Remove tiny code duplicationVolker Lendecke2007-12-291-4/+4
| | | | sid_size did the same as ndr_size_dom_sid
* Ensure we turn off POSIX large read/write if encryptionJeremy Allison2007-12-281-1/+4
| | | | | is mandatory or signing is on. Jeremy.
* Add the capability to set "smb encrypt = required"Jeremy Allison2007-12-271-1/+32
| | | | | | | | on a share (or global) and have the server reply with ACCESS_DENIED for all non-encrypted traffic (except that used to query encryption requirements and set encryption state). Jeremy.
* Add "smb encrypt" parameter. Can be set to "no, yes, required".Jeremy Allison2007-12-271-1/+24
| | | | | | Currently if set required this is not enforced. I'll be adding that soon. Jeremy.
* Add CIFS_UNIX_TRANSPORT_ENCRYPTION_CAP capability toJeremy Allison2007-12-271-1/+5
| | | | | our reported caps. Jeremy.
* Add SMB encryption. Still fixing client decrypt butJeremy Allison2007-12-261-0/+49
| | | | | negotiation works. Jeremy.
* Fix bug 5055Volker Lendecke2007-11-261-1/+1
|
* Paranoia check that space_remaining never goes -ve.Jeremy Allison2007-11-201-2/+10
| | | | Jeremy.
* Ensure we use PATH_MAX for symlinks.Jeremy Allison2007-11-161-2/+2
| | | | Jeremy.
* Fix a debug messageVolker Lendecke2007-11-051-1/+1
|
* 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.
* Add brackets so as not to break the POSIX caps return.Jeremy Allison2007-11-011-2/+2
| | | | Jeremy.
* Note when we're setting change time, not write time, and sendJeremy Allison2007-10-311-10/+24
| | | | | | message accordingly. Apart from not supporting create time we now pass the S4 RAW-NOTIFY torture. 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.
* Make explicit draining the socket on RECVFILE. AddJeremy Allison2007-10-311-1/+8
| | | | | | | | capability for large UNIX write if not signing and recvfile set. Cope with large UNIX write length on incoming processing. Stevef - we can now test 1-16Mb writes from CIFFS. Jeremy.
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-45/+45
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* Fix valgrind-found memory overwrite.Jeremy Allison2007-10-101-2/+2
|
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.samba-misc-tags/initial-v3-2-testGerald (Jerry) Carter2007-10-101-48/+1
|
* r25184: Fix some C++ warnings and an uninitialized variableVolker Lendecke2007-10-101-1/+1
|
* r25163: Fix wrong ctx passed to talloc_asprintf_append().Jeremy Allison2007-10-101-1/+1
| | | | | Found by Metze's code review (thanks Metze !). Jeremy.
* r25138: More pstring elimination. Add a TALLOC_CTX parameterJeremy Allison2007-10-101-10/+12
| | | | | to unix_convert(). Jeremy.
* r25117: The mega-patch Jerry was waiting for. Remove all pstrings fromJeremy Allison2007-10-101-156/+173
| | | | | | | | 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.