summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
* s3: Fix some nonempty blank linesVolker Lendecke2012-01-051-3/+3
|
* Third part of fix for bug #8679 - recvfile code path using splice() on Linux ↵Jeremy Allison2011-12-301-21/+18
| | | | | | | | leaves data in the pipe on short write. Fix default_sys_recvfile() to correctly cope with short writes. Return the amount written. Return -1 and set errno if no data could be written.
* Second part of fix for bug #8679 - recvfile code path using splice() on ↵Jeremy Allison2011-12-301-1/+30
| | | | | | | Linux leaves data in the pipe on short write. Split out the functionality of drain_socket() into a separate function from default_sys_recvfile().
* Fix bug #8679 - recvfile code path using splice() on Linux leaves data in ↵Jeremy Allison2011-12-251-3/+2
| | | | | | | | | the pipe on short write Bug found and fix suggested by Andrew Bartlett. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sun Dec 25 07:46:38 CET 2011 on sn-devel-104
* s3:lib/ctdbd_conn: try ctdbd_init_connection() as rootStefan Metzmacher2011-12-231-0/+2
| | | | | | | | | | | ctdbd_traverse is only called if the main db_context is already open. So if we could get to information via dbwrap_fetch, we should also be able to traverse. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Dec 23 18:19:14 CET 2011 on sn-devel-104
* Change the signature of pthreadpool_finished_job() to return 0Jeremy Allison2011-12-224-16/+19
| | | | | | | | | on success, errno on fail and return the jobid in a separate variable. I need this fix for my vfs_aio_pthread.c module. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Dec 22 12:12:33 CET 2011 on sn-devel-104
* s3: Fix some False/NULL hickupsVolker Lendecke2011-12-201-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Dec 20 13:13:17 CET 2011 on sn-devel-104
* s3:dbwrap fix return value of db_tdb_parseChristian Ambach2011-12-161-1/+5
| | | | | use the TDB ecode to determine the NTSTATUS return value and not the return code that is just -1
* s3:smbd: remove unused sconn_server_id()Stefan Metzmacher2011-12-161-27/+0
| | | | metze
* s3:lib/conn_tdb: avoid using sconn_server_id()Stefan Metzmacher2011-12-161-1/+2
| | | | metze
* s3-dbwrap: All relevant backends provide parse_record(). Remove the fallback.Volker Lendecke2011-12-151-37/+0
| | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Dec 15 17:41:53 CET 2011 on sn-devel-104
* s3-dbwrap: Remove the "fetch" db_context callbackVolker Lendecke2011-12-155-113/+0
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-dbwrap: Rewrite dbwrap_fetch in terms of dbwrap_parse_recordVolker Lendecke2011-12-151-3/+30
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-dbwrap: Rewrite dbwrap_fallback_parse_record based on dbwrap_fetch_lockedVolker Lendecke2011-12-151-4/+13
| | | | | | This is in preparation to remove the db_context->fetch function pointer Signed-off-by: Michael Adam <obnox@samba.org>
* s3-dbwrap: For nostalgic reasons, make dbwrap_file.c compile at leastVolker Lendecke2011-12-151-9/+14
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-dbwrap: Fix some blank line endingsVolker Lendecke2011-12-151-5/+5
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-dbwrap: Implement db_ctdb_parse_record in terms of db_ctdb_fetchVolker Lendecke2011-12-151-0/+19
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-dbwrap: Make dbwrap_parse_record return NTSTATUSVolker Lendecke2011-12-156-41/+68
| | | | | | | Also, the parser now returns void. The parser is called if and only if dbwrap_parse_record returns NT_STATUS_OK. Signed-off-by: Michael Adam <obnox@samba.org>
* s3: Move can_delete_directory to smbd/, remove shimVolker Lendecke2011-12-132-12/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Dec 13 19:00:37 CET 2011 on sn-devel-104
* s3-dbwrap: Simplify db_tdb_fetchlock_parse a bitVolker Lendecke2011-12-131-10/+11
| | | | Introduce a local variable for the result, replace "state->result" by "result"
* s3:lib/dummyparam: remove unused conn_snum_used() dummyStefan Metzmacher2011-12-131-5/+0
| | | | metze
* s3: Remove a bunch of calls to procid_self()Volker Lendecke2011-12-125-13/+8
| | | | All callers to messaging_[re]init only used procid_self()
* s3-ctdb: fix the build w/o HAVE_CTDB_CONTROL_CHECK_SRVIDS_DECLGünther Deschner2011-12-121-0/+4
| | | | | | | | | Volker, please check. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon Dec 12 17:42:29 CET 2011 on sn-devel-104
* s3-dbwrap: Fix a typoVolker Lendecke2011-12-091-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Dec 9 13:37:51 CET 2011 on sn-devel-104
* s3-dbwrap: & is not required when taking a function pointerVolker Lendecke2011-12-081-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Dec 8 16:39:29 CET 2011 on sn-devel-104
* s3-dbwrap: Make dbwrap_fallback_wipe privateVolker Lendecke2011-12-083-8/+4
|
* s3-dbwrap: Avoid an "else" by an early returnVolker Lendecke2011-12-081-4/+4
|
* s3-dbwrap: Make dbwrap_fallback_parse_record privateVolker Lendecke2011-12-083-14/+5
| | | | We have the private fallback in dbwrap_parse_record anyway
* s3-dbwrap: Make dbwrap_fallback_fetch privateVolker Lendecke2011-12-083-10/+6
|
* s3-dbwrap: use wrappers where appropriateVolker Lendecke2011-12-081-7/+7
|
* s3-dbwrap: Use simpler code for logging keysVolker Lendecke2011-12-081-18/+23
|
* s3: Fix some blank line endingsVolker Lendecke2011-12-083-11/+11
|
* s3: Fix some nonblank line endingsVolker Lendecke2011-12-021-4/+4
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Dec 2 20:39:33 CET 2011 on sn-devel-104
* s3: Remove unused dbwrap_record_get_private_dataVolker Lendecke2011-12-022-6/+0
| | | | | db_record->private_data is for backends which can include dbwrap_private.h anyway.
* s3-ctdb: Make use of CTDB_CONTROL_CHECK_SRVIDSVolker Lendecke2011-11-302-2/+223
| | | | | | | | This should be a lot quicker than PROCESS_EXISTS followed by looking at serverid.tdb Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Nov 30 12:47:27 CET 2011 on sn-devel-104
* s3:dbwrap_tdb: pass NTSTATUS code further up from db_tdb_fetch_parse in ↵Michael Adam2011-11-301-1/+1
| | | | | | | db_tdb_fetch() Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Nov 30 01:46:31 CET 2011 on sn-devel-104
* s3:dbwrap: turn the fetch dbwrap method to NTSTATUS return code.Michael Adam2011-11-295-55/+58
| | | | | This implement more correct NTSTATUS handling inside the backends. This ensures that data.dptr != NULL if return code is NT_STATUS_OK.
* s3:dbwrap_ctdb: re-use map_nt_error_from_tdb() in local tdb_error_to_ntstatus()Michael Adam2011-11-291-14/+1
|
* s3:dbwrap: do not burden the user of db_open_ctdb with ifdef voodooGregor Beck2011-11-252-3/+13
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:lib fix output of hex escapes > 0x7F with cbuf_print_quotedGregor Beck2011-11-251-1/+1
| | | | (cherry picked from commit a1fcb7e37a23dcc035686486d4afe32a67082ae1)
* security: add local authority well-known SIDsChristian Ambach2011-11-241-0/+6
| | | | | | | add the S-1-2 well-known SID family Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Thu Nov 24 19:01:08 CET 2011 on sn-devel-104
* s3-smbldap: remove dependency to secrets subsystem.Günther Deschner2011-11-161-17/+4
| | | | Guenther
* s3-smbldap: extend smbldap_init() with binddn/bindsecret arguments.Günther Deschner2011-11-161-0/+3
| | | | Guenther
* s3-passdb: split out passdb/pdb_ldap_schema.cGünther Deschner2011-11-161-220/+0
| | | | Guenther
* s3: move smbldap_util to pdb_ldap_util.Günther Deschner2011-11-161-335/+0
| | | | Guenther
* s3: server_id.pid has turned 64 (bits, that is)Volker Lendecke2011-11-101-4/+11
| | | | | | | | Fix ctdb_processes_exist protocol. The socket expects pid_t which is 32 bits on 32 bit machines. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Nov 10 18:57:01 CET 2011 on sn-devel-104
* s3:lib: make use of SMB_SIGNING_* constantsStefan Metzmacher2011-11-031-4/+5
| | | | metze
* s3:lib: s/Undefined/SMB_SIGNING_DEFAULT/Stefan Metzmacher2011-11-031-1/+1
| | | | metze
* s3:lib/netapi: s/Undefined/SMB_SIGNING_DEFAULT/Stefan Metzmacher2011-11-031-1/+1
| | | | metze
* s3: Fix some nonempty blank linesVolker Lendecke2011-10-311-5/+5
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Oct 31 14:25:14 CET 2011 on sn-devel-104