summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
* s3: allow to set TCP_NODELAYACK socket option on AIX (#8616)Björn Jacke2011-11-191-0/+3
| | | | | | | this is the AIX way to disable delayed ACKs, the same like TCP_QUICKACK on Linux this is a backport of 383a918322c1edd1977fdbce19e52e8c8e6ffac1
* s3-netapi: remove pointless use_memory_krb5_ccache.Günther Deschner2011-10-262-20/+0
| | | | | | | | This breaks the ABI. Guenther See bug #7465 for more details.
* Fix sys_fseek wrapperBrad Smith2011-10-201-0/+2
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> Fix bug #8525 (Bug with sys_fseek() wrapper on *BSD / OS X).
* First part of fix for bug #8419 - Make VFS op "streaminfo" stackable.Frank Lahm2011-10-201-1/+1
| | | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Oct 17 21:39:32 CEST 2011 on sn-devel-104 (cherry picked from commit c3bdcab5161107be8155a7913d9cb325383a781d)
* s3-netapi: allow to use default krb5 credential cache for libnetapi users.Günther Deschner2011-09-262-7/+23
| | | | Guenther
* Fix bug #8395 - optimize serverid_exists() for Solaris.Ira Cooper2011-08-231-1/+5
| | | | | | | | | | | | | | jra asked: Do you have any idea on how many calls it saves, and what help the optimization gives ? As far as calls: Not 100% sure, dtrace pointed the issue out to me, and when I saw 10-50%(Or more), I looked for an easy fix. The real expense here is the fnctl locks on the database. That's pretty painful. 1000ns per call, and probably 3-4 calls in that chain. So it doesn't take much to come out ahead was my math.
* s3: Make map_open_params_to_ntcreate() available in lib/Volker Lendecke2011-08-181-0/+148
|
* s3: Make is_executable() available in lib/Volker Lendecke2011-08-181-0/+17
|
* s3:lib/events: Fix a bug in run_poll_events().Stefan Metzmacher2011-08-091-0/+4
| | | | | | | | | | | | | | | | | Ignore fd events without EVENT_FD_READ or EVENT_FD_WRITE also in run_events_poll(). They are ignore when building the array for the syscall in event_add_to_poll_args(), so we need to ignore them run_events_poll() too. metze Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Aug 9 10:11:54 CEST 2011 on sn-devel-104 (cherry picked from commit 020032e114c0e966acf24f24e707942219d60cf3) Fix bug #8358 (smbd exits with NT_STATUS_INTERNAL_ERROR in run_poll_events()).
* s3: dbwrap_ctdb.c: Fix bug #8303 #ifdef CTDB_CONTROL_SCHEDULE_FOR_DELETION issueBjörn Baumbach2011-07-311-2/+2
| | | | | | | | | | | | Check for HAVE_CTDB_CONTROL_SCHEDULE_FOR_DELETION_DECL instead of CTDB_CONTROL_SCHEDULE_FOR_DELETION, which is an enum member and not a define. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jul 12 18:56:30 CEST 2011 on sn-devel-104 (cherry picked from commit b807c58b655f1ffbf849f5de9eef66136bdb4a52)
* s3:lib/afs fix the build with --with-fake-kaserverChristian Ambach2011-07-262-3/+11
| | | | This fixes one piece of Bug #8263
* Second part of fix for bug 8310 - toupper_ascii() is broken on big-endian ↵Jeremy Allison2011-07-214-10/+44
| | | | | | | | | | | | | | | systems. Re-add: smb_ucs2_t toupper_w(smb_ucs2_t v); bool isupper_w(smb_ucs2_t v); smb_ucs2_t tolower_w(smb_ucs2_t v); bool islower_w(smb_ucs2_t v); and ensure they are called whenever we are operating on smb_ucs2_t variables. I'd like to make the definition of smb_ucs2_t incompatible with int and codepoint_t so they can't be mixed, but that's a patch for another time.
* First part of fix for bug 8310 - toupper_ascii() is broken on big-endian systemsJeremy Allison2011-07-213-42/+4
| | | | | | | | | | Remove int toupper_ascii(int c); int tolower_ascii(int c); int isupper_ascii(int c); int islower_ascii(int c); and replace with their _m equivalents, as they are identical.
* s3: Return "granted" from share_access_checkVolker Lendecke2011-07-131-2/+8
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 1c022d2e414607633323e65abbc63bb3aeaaa6a4)
* s3:smbldap: make smbldap_connect_system self containedGregor Beck2011-07-041-6/+11
| | | | The last patches address bug #8253 (winbindd panics if verify_idpool() fails).
* s3:smbldap: add a destructor to smbldap_state, just in caseGregor Beck2011-07-041-0/+7
|
* s3:smbldap: let smbldap_free_struct do what it claims toGregor Beck2011-07-041-2/+1
|
* s3:smbldap: free the idle event scheduled in smbldap_open in smbldap_closeGregor Beck2011-07-041-1/+2
|
* s3:smbldap: use smbldap_state as memory context for idle eventGregor Beck2011-07-041-2/+2
| | | | | ensure the event is canceled if the smbldap_state gets freed this fixes a panic of winbindd if verify_idpool fails
* source3/lib/privileges.h: fix licence/copyrightGünther Deschner2011-06-141-0/+27
| | | | | Guenther (cherry picked from commit 5672d83b23e89f716300940126bef0a738aa3599)
* source3/lib/netapi/libnetapi.h: fix licence/copyrightGünther Deschner2011-06-141-0/+19
| | | | | Guenther (cherry picked from commit 387ddc2c295e92363c83dcd29353cdd4c56984ab)
* s3: add _LIB_IDMAP_CACHE_H_ guard to lib/idmap_cache.h (cherry picked from ↵Michael Adam2011-06-141-0/+5
| | | | commit c2887f060954bd0e77bc6f3ac8fedec38e26c168)
* s3: add GPL/Copyright header to lib/idmap_cache.h (cherry picked from commit ↵Michael Adam2011-06-141-0/+20
| | | | 2b8803d458465508d0f4299248d858b9c393323e)
* s3:lib/eventlog/proto.h: add _LIB_EVENTLOG_PROTO_H_ guard (cherry picked ↵Michael Adam2011-06-141-0/+5
| | | | from commit 36feb8a240a7f061e25223364c1f7ca8476a029f)
* s3:lib/eventlog/proto.h: add GPL/Copyright header (cherry picked from commit ↵Michael Adam2011-06-141-0/+22
| | | | 00530e3d0166641a4f9716067e3c5d1146b0db17)
* Revert "Fix bug 8196 - Many (newer) header files don't have copyright / GPL ↵Karolin Seeger2011-06-075-114/+1
| | | | | | header comments." This reverts commit 6df3ff20620b3262ff232a478312c61a207ed4ff.
* Fix bug 8196 - Many (newer) header files don't have copyright / GPL header ↵Jeremy Allison2011-06-075-1/+114
| | | | | | comments. Add missing GPL headers and (C) statements.
* Add the same fix to the S3 event backend as the previous commit added to the ↵Jeremy Allison2011-06-071-1/+14
| | | | | | | | | | tevent poll backend. Metze please check ! Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Jun 4 00:27:37 CEST 2011 on sn-devel-104 (cherry picked from commit 3c9b3b2befc524f21c59f46ea9be1602b4b1bfe8)
* Fix Bug 8152 - smbd crash in release_ip()Christian Ambach2011-05-201-0/+5
| | | | | | | | | 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 (cherry picked from commit 642c6ba2b9c581bacfcb9a6cb4c5c95d446263ce)
* s3-libsmb: move protos to libsmb/proto.hGünther Deschner2011-05-161-0/+1
| | | | Guenther
* s3: only include tdb headers where needed.Günther Deschner2011-05-1617-0/+20
| | | | | Guenther (cherry picked from commit d8cfca3a9bd2b6b6c562fd202377d95a98eb5472)
* lib/util Move source3 tdb_wrap_open() into the common code.Andrew Bartlett2011-05-165-159/+4
| | | | | | | | | | 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 (cherry picked from commit 14750139639b3531e57a3ca3f9e481d6e458dc06)
* lib/util Move more network utility functions from source3 into lib/utilAndrew Bartlett2011-05-162-227/+0
| | | | | | | This will help with the merge of the interfaces layer. Andrew Bartlett (cherry picked from commit fbea52f74a80268446f45936a0cf40400aba8565)
* s3-lib: run minimal_includes.pl.Günther Deschner2011-05-162-2/+0
| | | | | Guenther (cherry picked from commit 63ebc918e4514f0006b94856d9b089255fca9718)
* s3-system: move LOCK_ defines to lib/system.cGünther Deschner2011-05-161-0/+9
| | | | | Guenther (cherry picked from commit 4fa2bac6e7ebe11447b535d9c8ec4348a2bbd39e)
* s3-util: move valid_share_pathname() to lib/util.cGünther Deschner2011-05-161-0/+34
| | | | | Guenther (cherry picked from commit c1f3ff734043082a9488c787324e76a37702f94d)
* More const compiler warning fixes.Jeremy Allison2011-05-161-1/+1
| | | | (cherry picked from commit 9efea96d16a9f9526669e7d9288902a15d0ee549)
* Fix 3.6 headersSimo Sorce2011-05-131-0/+2
|
* s3-libnetapi/libnetjoin: fix uninitialized variables after the libsmbconf ↵Günther Deschner2011-05-131-1/+1
| | | | | | | changes. Guenther (cherry picked from commit 04c101e873bd758fae6b7131551f6069ab2fcce3)
* s3-lib/smbconf: fix uninitialized error code in smbconf_reg_init().Günther Deschner2011-05-121-1/+1
| | | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu May 12 18:09:16 CEST 2011 on sn-devel-104 (cherry picked from commit 7da530e1e42ab15152bc39d4edd4e9a10f091a22)
* libsmbconf: Convert smbconf_transaction_*() to sbcErr.Andreas Schneider2011-05-111-6/+27
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_delete_includes() to sbcErr.Andreas Schneider2011-05-112-13/+16
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_set_includes() to sbcErr.Andreas Schneider2011-05-112-18/+23
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_get_includes() to sbcErr.Andreas Schneider2011-05-112-19/+18
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_delete_parameter() to sbcErr.Andreas Schneider2011-05-111-6/+8
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_get_parameter() to sbcErr.Andreas Schneider2011-05-111-7/+6
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_set_parameter() to sbcErr.Andreas Schneider2011-05-112-13/+22
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_delete_share() to sbcErr.Andreas Schneider2011-05-111-7/+14
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_get_share() to sbcErr.Andreas Schneider2011-05-111-56/+73
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_create_share() to smbErr.Andreas Schneider2011-05-111-10/+12
| | | | Signed-off-by: Michael Adam <obnox@samba.org>