summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug #8157 - std_pcap_cache_reload() fails to parse a cups printcap file ↵Jeremy Allison2011-05-201-8/+5
| | | | | | | | | | correctly. The parsing code made some strange assumptions about what is a printer name, and what is a comment. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri May 20 22:52:23 CEST 2011 on sn-devel-104
* 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-202-12/+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 Coverity ID 2573: UNUSED_VALUEVolker Lendecke2011-05-201-2/+3
| | | | Andrew B., please check!
* s3: Fix an uninitialized variableVolker Lendecke2011-05-201-1/+1
|
* s3:testparm: don't return an error for a warning messageStefan Metzmacher2011-05-201-1/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri May 20 13:14:39 CEST 2011 on sn-devel-104
* s3-epmapper: Fixed endpoint registration.Andreas Schneider2011-05-201-4/+4
| | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Fri May 20 12:03:18 CEST 2011 on sn-devel-104
* s3: Remove unused cli_setup_packet()Volker Lendecke2011-05-202-6/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri May 20 10:51:36 CEST 2011 on sn-devel-104
* Fix Bug 8152 - smbd crash in release_ip()Christian Ambach2011-05-192-0/+8
| | | | | | | | 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: Remove a use of cli_send_smbVolker Lendecke2011-05-191-46/+53
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu May 19 20:11:33 CEST 2011 on sn-devel-104
* fix the WAF buildVolker Lendecke2011-05-191-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu May 19 18:46:51 CEST 2011 on sn-devel-104
* s3: Do central cli_set_errorVolker Lendecke2011-05-199-189/+2
|
* s3: Remove the use of cli->inbuf/outbuf from cli_session_requestVolker Lendecke2011-05-191-45/+53
|
* s3: Add sync read_smbVolker Lendecke2011-05-192-0/+25
|
* s3: Make read_smb_send/recv publicVolker Lendecke2011-05-194-87/+145
|
* Make protocol version 2 the default protocol, and only run on version 1 if ↵Holger Hetterich2011-05-181-6/+5
| | | | | | | | | | | | | | | | | | | V1 is explcitly given as a module option. I haven't received a single line of feedback on protocol v1 for at least 1 1/2 years, whereas protocol v2 has an active userbase and more people developing around it. This patch includes a manpage update, describing the new version handling, as well as documenting the recent changes making the module transfer the IP address of the client machine as submitted with 464c69609aa7e582f484c1d357b7c6d3eb2bcbe3. Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed May 18 21:36:44 CEST 2011 on sn-devel-104
* s3-selftest Remove unused and unimplemented info3cache testAndrew Bartlett2011-05-181-54/+0
|
* selftest: Re-enable strings.py from source3/stf as a python subunit testAndrew Bartlett2011-05-182-180/+0
|
* s3-testparm Warn more on incorrect use of 'password server'Andrew Bartlett2011-05-181-2/+17
|
* lib/util/charset Don't allow invalid 'dos charset = utf8'Andrew Bartlett2011-05-181-0/+6
| | | | | | | No DOS client used UTF8, and this creates subtle, difficult to disagnose breakage of schannel (domain membership). Andrew Bartlett
* s3-selftest Remove unused sambalib.py from comfychair test systemAndrew Bartlett2011-05-181-39/+0
| | | | The test binary t_snprintf has moved to lib/replace
* s3-lib Replace StrnCaseCmp() with strncasecmp_m()Andrew Bartlett2011-05-1815-140/+79
| | | | | | | 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-1850-261/+177
| | | | | | | strcasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* s3-param: Remove unused snum2params_staticAndrew Bartlett2011-05-182-13/+0
|
* s3-param: remove unused share_iterator functionsAndrew Bartlett2011-05-183-55/+0
|
* build: Add 'cap' as a dependency of samba3coreAndrew Bartlett2011-05-181-1/+1
|
* build: Make POPT_SAMBA3 a libraryAndrew Bartlett2011-05-181-4/+5
| | | | | | | This avoids some duplicate symbols when libnet and libsmbclient are linked into the same binary (smbtorture4). Andrew Bartlett
* librpc/ndr Merge ndr_print_sockaddr_storage() into common codeAndrew Bartlett2011-05-183-39/+3
| | | | | | | There is no longer a reason to leave this source3 specific, and this brings it into a library (avoiding duplicate symbols). Andrew Bartlett
* build: Add rpc_client grouping libraryAndrew Bartlett2011-05-181-0/+7
|
* build: Add depenencies needed by Samba3 subsystemsAndrew Bartlett2011-05-183-3/+6
|
* build: Make msrpc3 a libraryAndrew Bartlett2011-05-181-4/+5
|
* waf-build: Add more libraries to avoid duplicate symbolsAndrew Bartlett2011-05-181-4/+5
| | | | | | The new source of duplicates is calling libnetapi from inside smbtorture. Andrew Bartlett
* s3-smbtorture: fix build warning (shadowed NTSTATUS variable).Günther Deschner2011-05-181-1/+0
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed May 18 14:17:13 CEST 2011 on sn-devel-104
* s3-modules: Fix the build of gpfs.c on RHEL 6.0 with gpfs 3.4.0-4Björn Baumbach2011-05-181-0/+1
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed May 18 11:58:14 CEST 2011 on sn-devel-104
* s3-torture/nbio.c: Fix cli_errstr() usage (part of bug #7864)Björn Baumbach2011-05-181-7/+16
| | | | | | Convert cli_errstr() to nt_errstr() Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-client/clitar.c: Fix cli_errstr() usage (part of bug #7864)Björn Baumbach2011-05-181-9/+14
| | | | | | Convert cli_errstr() to nt_errstr() Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-net_rpc_printer.c: Fix cli_errstr() usage (part of bug #7864)Björn Baumbach2011-05-181-59/+57
| | | | | | Convert cli_errstr() to nt_errstr() Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-libsmb/passchange.c: Fix cli_errstr() usage (part of bug #7864)Björn Baumbach2011-05-181-8/+9
| | | | | | Convert cli_errstr() to nt_errstr() Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture/mangle_test.c: Fix cli_errstr() usage (part of bug #7864)Björn Baumbach2011-05-181-13/+20
| | | | | | Convert cli_errstr() to nt_errstr() Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-torture: torture.c: Fix cli_errstr() usage (part of bug #7864)Björn Baumbach2011-05-181-510/+804
| | | | | | Convert cli_errstr() to nt_errstr() Signed-off-by: Stefan Metzmacher <metze@samba.org>
* 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
* is_my_ipaddr() should recognise loopback addresses as ours.Jeremy Allison2011-05-171-5/+5
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue May 17 20:05:42 CEST 2011 on sn-devel-104
* Remove duplicate definition of SMB_VFS_NEXT_STRICT_UNLOCK. Found by ↵Jeremy Allison2011-05-171-3/+0
| | | | herb@samba.org
* 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
* s3:rpc_server: create lp_ncalrpc_dir() with 0755 before lp_ncalrpc_dir()/np ↵Stefan Metzmacher2011-05-171-0/+11
| | | | | | | | | with 0700 metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue May 17 13:01:14 CEST 2011 on sn-devel-104
* Revert "s3-rpc_server: Force ncalrpc dir to be mode 755."Stefan Metzmacher2011-05-171-1/+13
| | | | This reverts commit a032c9c8fe8aff455407485169b9445860f89606.
* 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-162-4/+8
| | | | table entries.