summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
* s3:smbd: simplify the notify code a bit and always reply via ↵Stefan Metzmacher2009-07-022-34/+27
| | | | | | change_notify_reply() -> send_nt_replies() metze
* s3:smbd: push nttrans and trans2 responses with no data to the clientStefan Metzmacher2009-07-022-0/+16
| | | | | | | | | | For sync replies it's not a problem, as construct_reply() will send the response, but for async replies we would not send the reply to the client. Currently the notify code works arround this manually, so I assume we didn't have a bug here. But the next commits will simplify the notify code. metze
* s3:smbd: restore the 3.0.x bahavior of send_nt_replies()Stefan Metzmacher2009-07-021-0/+5
| | | | | | We should also set the error code, when we return no parameters or data. metze
* s3:smbd: move global notify_changes_by_mid to smbd_server_connectionStefan Metzmacher2009-07-023-7/+8
| | | | metze
* s3:smbd: allow the offset to the path being 0 in SMB2 createStefan Metzmacher2009-07-021-1/+3
| | | | metze
* Ensure we don't use delayed writes on POSIX opened files.Jeremy Allison2009-07-012-0/+15
| | | | | | Don't remove pending writetime changes if no time changes are sent in UNIX_BASIC infolevel. Jeremy
* Fix bug #6520 time stamps - e.g. last mod time is not preserved when "unix ↵Jeremy Allison2009-07-011-3/+31
| | | | | | | | extensions=yes" are set - and using latest cifs vfs client Cancel out any pending "sticky" writes or "last write" changes when doing a UNIX info level set. Jeremy.
* s3:smbd: remove unused variables passed to parent_dirname()Stefan Metzmacher2009-07-012-5/+3
| | | | metze
* s3:fix build of old linux quota system and other unixes' quota implementationMichael Adam2009-06-291-14/+14
| | | | | | By fixing the use of struct stat_ex. Michael
* Stop listening for inotify data when there's noneVolker Lendecke2009-06-271-0/+1
| | | | | | There have been some reports that we're flooding syslog with "No data on inotify fd?!". I haven't been able to reproduce this yet. Until then, it is better to just list this message once.
* Fix some nonempty blank linesVolker Lendecke2009-06-271-9/+9
|
* s3/lanman: Workaround for KB932762.Volker Lendecke2009-06-271-0/+1
| | | | This addresses bug #6498.
* s3: pass a valid stat into file_ntimes()Tim Prouty2009-06-252-3/+3
| | | | file_ntimes() calls can_write_to_file() which expects a valid stat struct
* s3 file_access: Convert some more functions over to use smb_filneameTim Prouty2009-06-255-42/+62
|
* s3: simplify some redundant logic in is_ntfs_default_stream_smb_fname()Tim Prouty2009-06-251-5/+1
|
* s3: Remove get_full_smb_filename() from open_directory()Tim Prouty2009-06-251-19/+9
| | | | | This is possible because open_directory() returns an error if the fname is a stream, so the base_name can be used.
* s3: Change set_ea() and its callers to use smb_filenameTim Prouty2009-06-252-14/+17
|
* Fix bug #6506 - SMBD server doesn't set EAs when a file is overwritten in ↵Jeremy Allison2009-06-251-1/+2
| | | | | | | NT_TRANSACT_CREATE. Reported and verified by Long Li <longli@microsoft.com> Jeremy.
* s3: Plumb smb_filename through SMB_VFS_STAT and SMB_VFS_LSTATTim Prouty2009-06-2415-383/+573
| | | | | | | | | | | | | This patch introduces two new temporary helper functions vfs_stat_smb_fname and vfs_lstat_smb_fname. They basically allowed me to call the new smb_filename version of stat, while avoiding plumbing it through callers that are still too inconvenient. As the conversion moves along, I will be able to remove callers of this, with the goal being to remove all callers. There was also a bug in create_synthetic_smb_fname_split (also a temporary utility function) that caused it to incorrectly handle filenames with ':'s in them when in posix mode. This is now fixed.
* s3: Convert is_visible_file to use talloc_asprintf instead of mallocTim Prouty2009-06-241-14/+15
|
* s3:smbd: send SMB2 interim responses for async callsStefan Metzmacher2009-06-245-0/+25
| | | | metze
* s3:smbd: add support for async interim SMB2 responses and prepare SMB2 cancelStefan Metzmacher2009-06-242-1/+157
| | | | metze
* s3:smbd: keep a list of outstanding SMB2 requestsStefan Metzmacher2009-06-242-28/+69
| | | | metze
* s3:smbd: add smbd_smb2_send_oplock_break()Stefan Metzmacher2009-06-242-0/+93
| | | | metze
* s3:smbd: the SMB2-COMPOUND test shows that the related vs. unrelated flags ↵Stefan Metzmacher2009-06-241-0/+7
| | | | | | isn't checked first metze
* s3: forward MSG_DEBUG from smbd parent to all childrenAravind Srinivasan2009-06-222-14/+34
| | | | | | | | | | | | | | | | | | | Before 3.3, an smbcontrol debug message sent to the target "smbd" would actually be sent to all running processes including nmbd and winbindd. This behavior was changed in 3.3 so that the "smbd" target would only send a message to the process found in smbd.pid, while the "all" target would send a message to all processes. The ability to set the debug level of all processes within a single daemon, without specifying each pid is quite useful. This was implemented in winbindd in 065760ed. This patch does the same thing for smbd. Upon receiving a MSG_DEBUG the parent smbd will rebroadcast it to all of its children. The printing process has been added to the list of smbd child processes, and we now always track the number of smbd children regardless of the "max smbd processes" setting.
* Fix coverity #676. Forward NULL.Jeremy Allison2009-06-191-0/+6
| | | | Jeremy.
* Fix Coverity IDs 922 and 933Volker Lendecke2009-06-191-2/+5
| | | | | | | | | | | In copy_internals(), if the !CAN_WRITE(conn) kicks in, we end up dereferencing a NULL smb_filename. This adds a simple protection around it. Tim, please check! Volker
* Fix bug 4699: Remove pidfile on clean shutdownVolker Lendecke2009-06-181-0/+3
|
* acl_group_override() doesn't need to call stat. Pass thisJeremy Allison2009-06-181-28/+17
| | | | | down from above (as const). Jeremy.
* Add some const to the stat struct in the dosmode calls.Jeremy Allison2009-06-186-83/+64
| | | | | | | | Fix a couple more unix_convert uses to filename_convert. Fix bug in acl_group_override() where an uninitialized struct could be used. Move unix_convert with wildcard use in SMBsearch reply to boilerplate code. Jeremy.
* Replace the boilerplate calls to :Jeremy Allison2009-06-185-268/+146
| | | | | | | | | | | | resolve_dfspath() -> unix_convert() -> get_full_smb_filename() -> check_name() with a new function filename_convert(). This restores the check_name() calls that had gone missing since the default create_file was changed. All "standard" pathname processing now goes through filename_convert(). I'll take a look at the non-standard pathname processing next. As a benefit, fixed a missing resolve_dfspath() in the trans2 mkdir call. Jeremy.
* s3: Change SMB_VFS_OPEN to take an smb_filename structTim Prouty2009-06-173-7/+22
| | | | | | | | | | | | This was a little messy because of all of the vfs modules I had to touch. Most of them were pretty straight forward, but the streams modules required a little attention to handle smb_filename. Since the use of smb_filename enables the vfs modules to access the raw, over-the-wire stream, a little bit of the handling that was being done by split_ntfs_stream_name has now been shifted into the individual stream modules. It may be a little more code, but overall it gives more flexibility to the streams modules, while also allowing correct stream handling.
* s3: Plumb smb_filename from create_file all of the way down to fd_openTim Prouty2009-06-173-196/+276
| | | | | | | | | | | | I used the smb_filename struct everywhere that was feasible for the first pass. There are still some places in this path that need to be changed to use smb_filename, but this is a good start. I also: - Removed fname/path arguments from a few functions that weren't really using them. - Added a utility function for detecting whether an smb_filename is a stream.
* Fix bug #6476 - more then 3000 smbd-zombies in memoryJeremy Allison2009-06-171-0/+12
| | | | | We weren't reaping children in the [x]inetd case. Jeremy.
* Remove msdfs pathname processing from default create file.Jeremy Allison2009-06-161-25/+0
| | | | | No longer needed. Jeremy
* Fix msdfs after the change to smb_filename struct. We must *always*Jeremy Allison2009-06-164-27/+138
| | | | | pull the pathname, then call resolve_dfspath(), before unix_convert(). Jeremy.
* s3: Plumb smb_filename through SMB_VFS_CREATE_FILETim Prouty2009-06-126-257/+234
|
* s3: Add smb_filename utility functions and fix a bug in copy_smb_filenameTim Prouty2009-06-121-5/+85
|
* Check for error in transfer_file return also.Jeremy Allison2009-06-121-1/+7
| | | | Jeremy.
* Fix bug 6440Volker Lendecke2009-06-121-11/+19
| | | | Don't ignore the close error of the output file in check_magic()
* Simplify close_normal_file()Volker Lendecke2009-06-121-22/+21
|
* Fix bug #6297 - owner of sticky directory cannot delete files created by others.Jeremy Allison2009-06-111-2/+13
| | | | | | | | | | | The reason we couldn't delete was we were erroring out early if requestor was not the owner of the file we wanted to delete, instead of checking if the requestor owned the directory as well. If either of these is true, we must go on and check the ACL. Karolin, this is a must for 3.4.0 and also 3.3.next. I'll update the bug report with patches for 3.4.0 and 3.3.next and ask vl to review. Jeremy.
* s3: Prepare the rename path for passing smb_filename to SMB_VFS_CREATE_FILETim Prouty2009-06-111-106/+133
|
* s3: Prepare the do_unlink path for passing smb_filname to SMB_VFS_CREATE_FILETim Prouty2009-06-111-72/+77
|
* s3: refactor utility function to handle splitting the directory from the maskTim Prouty2009-06-111-11/+35
|
* s3: Prepare the first set of SMB_VFS_CREATE_FILE callers to take an ↵Tim Prouty2009-06-104-157/+233
| | | | | | | | | | | | | smb_filename struct Some of the callers required minimal changes, while others (copy_internals) required significant changes. The task is simplified a little bit because we are able to do operations and checks on the base_name when a stream isn't used. This patch should cause no functional changes. Volker, Jeremy: Please check
* s3: Add utility function for copying an smb_filename structTim Prouty2009-06-101-0/+39
|
* s3: Remove unix_convert handling from createfile implementationsTim Prouty2009-06-101-29/+4
|
* s3: Make all callers of SMB_VFS_CREATEFILE call unix_convert firstTim Prouty2009-06-104-140/+209
| | | | | This step is a requirement to change SMB_VFS_CREATEFILE to take an smb_filename struct.