summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug 8133 - strange behavior for the file (whose filename first character ↵Jeremy Allison2011-05-201-2/+3
| | | | | | | | | | is period ) in SMB2 case. When doing SMB2 renames, we need to match all filetypes (no attributes field in the SMB2 call). By default a file starting with a period is returned as FILE_ATTRIBUTE_HIDDEN in Samba. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri May 20 19:26:04 CEST 2011 on sn-devel-104
* Optimization. If the attributes passed to can_rename() include both ↵Jeremy Allison2011-05-201-5/+8
| | | | FILE_ATTRIBUTE_HIDDEN and FILE_ATTRIBUTE_SYSTEM then there's no point in reading the source DOS attribute, as we're not going to deny the rename on attribute match.
* s3:smbd remove unused codeChristian Ambach2011-05-201-11/+0
| | | | | | | | | | | | | | | in the early CTDB days, the RELEASE_IP message was defined and some code was added to react on such a message to make smbd exit if the IP address it was using for the server socket is removed by CTDB. Later, it was discovered that we need to stop smbd immediately and logic was added to ctdb_conn to call release_ip() without going through the messaging system. So this code is not used and can be removed Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Fri May 20 16:18:24 CEST 2011 on sn-devel-104
* s3: Fork the echo handler only after SMB1 negprot is doneVolker Lendecke2011-05-203-7/+8
| | | | | | | | This enables activating the echo responder also if SMB2 is enabled, albeit it will only be used for SMB1 at this moment. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri May 20 15:06:03 CEST 2011 on sn-devel-104
* s3: Fix an uninitialized variableVolker Lendecke2011-05-201-1/+1
|
* Fix Bug 8152 - smbd crash in release_ip()Christian Ambach2011-05-191-0/+3
| | | | | | | | release_ip() needs the private_data, but it was never saved away to feed it into release_ip() later Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Thu May 19 21:21:14 CEST 2011 on sn-devel-104
* s3-lib Replace StrnCaseCmp() with strncasecmp_m()Andrew Bartlett2011-05-181-1/+1
| | | | | | | strncasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* s3-lib Replace StrCaseCmp() with strcasecmp_m()Andrew Bartlett2011-05-183-6/+6
| | | | | | | strcasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* Fix bug #8144 - touch /mnt/newfile fails to set timestamp with CIFS client.Jeremy Allison2011-05-181-10/+15
| | | | | | | | | | | | | | The extra checks added for Windows correctness in our metadata changing paths to ensure the file handle has been opened with the correct access mask to allow FILE_WRITE_ATTRIBUTES etc. caused problems with the POSIX open code. The old POSIX open code maped O_RDONLY into FILE_READ, O_WRONLY into FILE_WRITE, and O_RDWR into FILE_READ|FILE_WRITE. This patch extends the mapping to add FILE_WRITE_ATTRIBUTES, FILE_READ_ATTRIBUTES and FILE_WRITE_EA, FILE_READ_EA to allow POSIX opens to set these values. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed May 18 02:22:32 CEST 2011 on sn-devel-104
* s3: conn->sconn in smbd_server_connection_read/write_handlerVolker Lendecke2011-05-171-9/+10
| | | | | | | "struct smbd_server_connection" is called sconn elsewhere, avoid confusion Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue May 17 19:00:20 CEST 2011 on sn-devel-104
* Fix the SMB2 showstopper, found by an extended torture test from Volker.Jeremy Allison2011-05-161-3/+25
| | | | | | | | | | | | | | | | | In the oplock refactoring, the algorithm underwent an unnoticed change. In 3.5.x stat_opens were silently (i.e. no explicit code had comments explaining this) ignored when looking for oplock breaks and share mode violations. After the refactoring, the function find_oplock_types() no longer ignored stat_open entries in the share mode table when looking for batch and exclusive oplocks. This patch adds two changes to find_oplock_types() to ignore the case where the incoming open request is a stat open being tested against existing opens, and also when the incoming open request is a non-stat open being tested against existing stat opens. Neither of these cause an oplock break or share mode violation. Thanks a *lot* to Volker, who persevered in reproducing this problem. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon May 16 22:38:20 CEST 2011 on sn-devel-104
* Ensure we always write the correct incoming mid into the share modeJeremy Allison2011-05-161-2/+4
| | | | table entries.
* rpc_server: Always use rpc_pipe_open_interface()Simo Sorce2011-05-131-8/+8
| | | | | | | | | | This way we can configure which rpc service we actually want to connect to. By default it uses an "embedded" interface and calls rpc_pipe_open_internal() Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri May 13 14:40:26 CEST 2011 on sn-devel-104
* s3: Slightly simplify smbd_smb2_request_next_vectorVolker Lendecke2011-05-121-3/+5
| | | | Metze, Jeremy, please check!
* s3-smbd: expose smbd_set_server_fd()Andrew Tridgell2011-05-082-29/+29
| | | | | | | | | | this allows the fd to be setup by subsystems that want to use the s3 server core code Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sun May 8 12:01:13 CEST 2011 on sn-devel-104
* s3-libsmb: move protos to libsmb/proto.hGünther Deschner2011-05-064-0/+4
| | | | Guenther
* s3: only include tdb headers where needed.Günther Deschner2011-05-067-3/+10
| | | | Guenther
* s3-smbd ntstatus_to_dos() pulls the DOS error codes out internallyAndrew Bartlett2011-05-061-5/+4
| | | | | | This means we don't need to duplicate that logic here. Andrew Bartlett
* s3-lib Remove unused dos error codes from errmap_unixAndrew Bartlett2011-05-061-3/+0
| | | | | | | This also makes unix_nt_errmap private to errmap_unix.c and errormap.c so the tables themselves cannot be duplicate symbols until merged. Andrew Bartlett
* lib/util Move source3 tdb_wrap_open() into the common code.Andrew Bartlett2011-05-061-0/+1
| | | | | | | | | This #if _SAMBA_BUILD == 3 is very unfortunate, as it means that in the top level build, these options are not available for these databases. However, having two different tdb_wrap lists is a worse fate, so this will do for now. Andrew Bartlett
* s3-auth: fixed bug with usernames longer than sizeof(char *)Andrew Tridgell2011-05-061-3/+3
| | | | | | | | | | | | using sizeof(user) when user is "fstring user" as a C parameter actually returns sizeof(char *), which means that long usernames aren't allowed. Jeremy, you need a longer username :-) Cheers, Tridge Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* More const fixes. Remove CONST_DISCARD.Jeremy Allison2011-05-062-3/+3
|
* More simple const fixes.Jeremy Allison2011-05-057-14/+14
|
* Fixup build without --with-aio.Jeremy Allison2011-05-051-1/+1
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu May 5 21:38:23 CEST 2011 on sn-devel-104
* Fix many const compiler warnings.Jeremy Allison2011-05-0513-40/+40
|
* s3: Fix a typoVolker Lendecke2011-05-051-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu May 5 16:10:35 CEST 2011 on sn-devel-104
* s3: Fix dup_smb2_vec3Volker Lendecke2011-05-051-1/+1
| | | | | | | | | | | Metze, Jeremy, please check! Thanks, Volker Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu May 5 13:39:40 CEST 2011 on sn-devel-104
* Fix warning messages caused by addition of null check in fstrcpy macro.Jeremy Allison2011-05-042-5/+5
|
* Fix off-by-one when used with safe_strcpy.Jeremy Allison2011-05-041-1/+1
|
* Simple +1 changes in hardcoded lengths when changing from safe_strcpy to ↵Jeremy Allison2011-05-043-6/+6
| | | | strlcpy.
* BUGFIX when converting from safe_strcpy to strlcpy.Jeremy Allison2011-05-041-1/+5
| | | | | We must have a blob legth > 0 in order to safely copy the (possibly) 16 bytes + 1 byte zero character safely.
* s3: Handle EINTR from sys_poll correctlyVolker Lendecke2011-05-031-1/+4
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue May 3 18:06:48 CEST 2011 on sn-devel-104
* s3: reply_readbraw_error needs an sconn as argument also in the non-LFS code ↵Björn Jacke2011-05-031-1/+1
| | | | | | | | | path Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Tue May 3 13:04:11 CEST 2011 on sn-devel-104
* s3: include ntdomain.h before including generated srv_ headers.Günther Deschner2011-05-021-1/+1
| | | | Guenther
* s3-smbd: avoid using pipes_struct when only session_info is needed.Günther Deschner2011-05-022-6/+5
| | | | Guenther
* s3-proto: move remaining spoolss protos to own header file.Günther Deschner2011-05-021-0/+1
| | | | Guenther
* s3-proto: move more rpc_server prototypes out of proto.hGünther Deschner2011-05-026-0/+6
| | | | Guenther
* Fix bug #8112 - POSIX extension opens of a directory are denied with EISDIR.Jeremy Allison2011-04-291-2/+10
| | | | | | | | Ensure create_options are passed down to SMB_VFS_CREATE_FILE(). Correctly set create_options is SMB_O_DIRECTORY is set or pathname is known to be a directory. Jeremy.
* Fix bug 8111 - CIFS VFS: unexpected error on SMB posix openJeremy Allison2011-04-291-12/+49
| | | | | | | | | We are conflating the O_CREAT|O_EXCL with the O_TRUNC processing, they need to be separate. We need to chose using (O_CREAT|O_EXCL) first, then modify if O_TRUNC is set. This needs two separate switch statements. Jeremy
* s3-proto: move more headers to rpc_server/rpc_ncacn_np.h where they origin from.Günther Deschner2011-04-291-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Apr 29 22:05:07 CEST 2011 on sn-devel-104
* s3-proto: remove duplicate prototypes.Günther Deschner2011-04-291-0/+1
| | | | Guenther
* s3-tevent: only include ../lib/util/tevent wrappers where needed.Günther Deschner2011-04-2913-0/+13
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104
* s3-tsocket: only include ../lib/tsocket/tsocket.h where needed.Günther Deschner2011-04-293-0/+3
| | | | Guenther
* s3-build: remove some unused headers.Günther Deschner2011-04-293-6/+0
| | | | Guenther
* s3-smb Use FILE_ATTRIBUTE_ARCHIVE intead of aARCHAndrew Bartlett2011-04-296-16/+16
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_DIRECTORY intead of aDIRAndrew Bartlett2011-04-296-40/+40
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_VOLUME intead of aVOLIDAndrew Bartlett2011-04-291-3/+3
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_SYSTEM intead of aSYSTEMAndrew Bartlett2011-04-295-14/+14
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_HIDDEN intead of aHIDDENAndrew Bartlett2011-04-295-21/+21
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_READONLY intead of aRONLYAndrew Bartlett2011-04-293-15/+15
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett