Changeset 989 for vendor/current/lib


Ignore:
Timestamp:
Nov 25, 2016, 8:04:54 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.7

Location:
vendor/current/lib
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/lib/async_req/async_sock.c

    r988 r989  
    129129
    130130        /*
    131          * The only errno indicating that the connect is still in
    132          * flight is EINPROGRESS, everything else is an error
     131         * The only errno indicating that an initial connect is still
     132         * in flight is EINPROGRESS.
     133         *
     134         * We get EALREADY when someone calls us a second time for a
     135         * given fd and the connect is still in flight (and returned
     136         * EINPROGRESS the first time).
     137         *
     138         * This allows callers like open_socket_out_send() to reuse
     139         * fds and call us with an fd for which the connect is still
     140         * in flight. The proper thing to do for callers would be
     141         * closing the fd and starting from scratch with a fresh
     142         * socket.
    133143         */
    134144
    135         if (errno != EINPROGRESS) {
     145        if (errno != EINPROGRESS && errno != EALREADY) {
    136146                tevent_req_error(req, errno);
    137147                return tevent_req_post(req, ev);
  • vendor/current/lib/ldb-samba/ldb_matching_rules.c

    r988 r989  
    207207        const char *dn_oid;
    208208        unsigned int count;
    209         struct dsdb_dn **visited;
     209        struct dsdb_dn **visited = NULL;
    210210
    211211        schema = dsdb_get_schema(ldb, mem_ctx);
  • vendor/current/lib/ldb-samba/ldif_handlers.c

    r988 r989  
    16521652}
    16531653
    1654 static const char *secret_attributes[] = {DSDB_SECRET_ATTRIBUTES, NULL};
     1654static const char *secret_attributes[] = {DSDB_SECRET_ATTRIBUTES, "secret", NULL};
    16551655
    16561656/*
  • vendor/current/lib/param/loadparm.c

    r988 r989  
    25702570        lpcfg_do_global_parameter(lp_ctx, "max connections", "0");
    25712571
    2572         lpcfg_do_global_parameter(lp_ctx, "dcerpc endpoint servers", "epmapper wkssvc rpcecho samr netlogon lsarpc spoolss drsuapi dssetup unixinfo browser eventlog6 backupkey dnsserver");
     2572        lpcfg_do_global_parameter(lp_ctx, "dcerpc endpoint servers", "epmapper wkssvc rpcecho samr netlogon lsarpc drsuapi dssetup unixinfo browser eventlog6 backupkey dnsserver");
    25732573        lpcfg_do_global_parameter(lp_ctx, "server services", "s3fs rpc nbt wrepl ldap cldap kdc drepl winbindd ntp_signd kcc dnsupdate dns");
    25742574        lpcfg_do_global_parameter(lp_ctx, "kccsrv:samba_kcc", "false");
  • vendor/current/lib/replace/replace.h

    r988 r989  
    426426
    427427#ifndef PRINTF_ATTRIBUTE
    428 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
     428#ifdef HAVE___ATTRIBUTE__
    429429/** Use gcc attribute to check printf fns.  a1 is the 1-based index of
    430430 * the parameter containing the format, and a2 the index of the first
     
    438438
    439439#ifndef _DEPRECATED_
    440 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
     440#ifdef HAVE___ATTRIBUTE__
    441441#define _DEPRECATED_ __attribute__ ((deprecated))
    442442#else
  • vendor/current/lib/replace/snprintf.c

    r988 r989  
    805805        int signvalue = 0;
    806806        unsigned LLONG uvalue;
    807         char convert[20];
     807        char convert[22+1]; /* 64-bit value in octal: 22 digits + \0 */
    808808        int place = 0;
    809809        int spadlen = 0; /* amount to space pad */
     
    835835                        [uvalue % (unsigned)base  ];
    836836                uvalue = (uvalue / (unsigned)base );
    837         } while(uvalue && (place < 20));
    838         if (place == 20) place--;
     837        } while(uvalue && (place < sizeof(convert)));
     838        if (place == sizeof(convert)) place--;
    839839        convert[place] = 0;
    840840
  • vendor/current/lib/tevent/tevent.h

    r988 r989  
    17531753#ifdef TEVENT_DEPRECATED
    17541754#ifndef _DEPRECATED_
    1755 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
     1755#ifdef HAVE___ATTRIBUTE__
    17561756#define _DEPRECATED_ __attribute__ ((deprecated))
    17571757#else
  • vendor/current/lib/torture/torture.h

    r988 r989  
    480480        } while(0)
    481481
     482#define torture_assert_u64_not_equal_goto(torture_ctx,got,not_expected,ret,label,cmt)\
     483        do { uint64_t __got = (got), __not_expected = (not_expected); \
     484        if (__got == __not_expected) { \
     485                torture_result(torture_ctx, TORTURE_FAIL, \
     486                        __location__": "#got" was %llu (0x%llX), expected a different number: %s", \
     487                        (unsigned long long)__got, (unsigned long long)__got, \
     488                        cmt); \
     489                ret = false; \
     490                goto label; \
     491        } \
     492        } while(0)
     493
    482494#define torture_assert_errno_equal(torture_ctx,expected,cmt)\
    483495        do { int __expected = (expected); \
  • vendor/current/lib/util/attr.h

    r988 r989  
    3636
    3737#ifndef _DEPRECATED_
    38 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
     38#ifdef HAVE___ATTRIBUTE__
    3939#define _DEPRECATED_ __attribute__ ((deprecated))
    4040#else
     
    4444
    4545#ifndef _WARN_UNUSED_RESULT_
    46 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
     46#ifdef HAVE___ATTRIBUTE__
    4747#define _WARN_UNUSED_RESULT_ __attribute__ ((warn_unused_result))
    4848#else
     
    5252
    5353#ifndef _NORETURN_
    54 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
     54#ifdef HAVE___ATTRIBUTE__
    5555#define _NORETURN_ __attribute__ ((noreturn))
    5656#else
     
    6060
    6161#ifndef _PURE_
    62 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1)
     62#ifdef HAVE___ATTRIBUTE__
    6363#define _PURE_ __attribute__((pure))
    6464#else
     
    6868
    6969#ifndef NONNULL
    70 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1)
     70#ifdef HAVE___ATTRIBUTE__
    7171#define NONNULL(param) param __attribute__((nonnull))
    7272#else
     
    7676
    7777#ifndef PRINTF_ATTRIBUTE
    78 #if __GNUC__ >= 3
     78#ifdef HAVE___ATTRIBUTE__
    7979/** Use gcc attribute to check printf fns.  a1 is the 1-based index of
    8080 * the parameter containing the format, and a2 the index of the first
     
    8888
    8989#ifndef FORMAT_ATTRIBUTE
    90 #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
     90#ifdef HAVE___ATTRIBUTE__
    9191/** Use gcc attribute to check printf fns.  a1 is argument to format()
    9292 * in the above macro.  This is needed to support Heimdal's printf
    9393 * decorations. Note that some gcc 2.x versions don't handle this
    94  * properly, and as such I've used the same minimum from heimdal: GCC 3.1 **/
     94 * properly. **/
    9595#define FORMAT_ATTRIBUTE(a) __attribute__ ((format a))
    9696#else
  • vendor/current/lib/util/become_daemon.c

    r988 r989  
    2525#include "system/filesys.h"
    2626#include "system/locale.h"
    27 #if HAVE_LIBSYSTEMD_DAEMON
     27#if defined(HAVE_LIBSYSTEMD_DAEMON) || defined(HAVE_LIBSYSTEMD)
    2828#include <systemd/sd-daemon.h>
    2929#endif
     
    7070                newpid = fork();
    7171                if (newpid) {
    72 #if HAVE_LIBSYSTEMD_DAEMON
     72#if defined(HAVE_LIBSYSTEMD_DAEMON) || defined(HAVE_LIBSYSTEMD)
    7373                        sd_notifyf(0, "READY=0\nSTATUS=Starting process...\nMAINPID=%lu", (unsigned long) newpid);
    7474#endif /* HAVE_LIBSYSTEMD_DAEMON */
     
    9999_PUBLIC_ void exit_daemon(const char *msg, int error)
    100100{
    101 #ifdef HAVE_LIBSYSTEMD_DAEMON
     101#if defined(HAVE_LIBSYSTEMD_DAEMON) || defined(HAVE_LIBSYSTEMD)
    102102        if (msg == NULL) {
    103103                msg = strerror(error);
     
    118118                name = "Samba";
    119119        }
    120 #ifdef HAVE_LIBSYSTEMD_DAEMON
     120#if defined(HAVE_LIBSYSTEMD_DAEMON) || defined(HAVE_LIBSYSTEMD)
    121121        sd_notifyf(0, "READY=1\nSTATUS=%s: ready to serve connections...", name);
    122122#endif
     
    130130                name = "Samba";
    131131        }
    132 #ifdef HAVE_LIBSYSTEMD_DAEMON
     132#if defined(HAVE_LIBSYSTEMD_DAEMON) || defined(HAVE_LIBSYSTEMD)
    133133        sd_notifyf(0, "\nSTATUS=%s: %s", name, msg);
    134134#endif
  • vendor/current/lib/util/debug.c

    r988 r989  
    103103};
    104104
    105 #if defined(WITH_SYSLOG) || defined(HAVE_LIBSYSTEMD_JOURNAL)
     105#if defined(WITH_SYSLOG) || defined(HAVE_LIBSYSTEMD_JOURNAL) || defined(HAVE_LIBSYSTEMD)
    106106static int debug_level_to_priority(int level)
    107107{
     
    180180#endif /* WITH_SYSLOG */
    181181
    182 #ifdef HAVE_LIBSYSTEMD_JOURNAL
     182#if defined(HAVE_LIBSYSTEMD_JOURNAL) || defined(HAVE_LIBSYSTEMD)
    183183#include <systemd/sd-journal.h>
    184184static void debug_systemd_log(int msg_level,
     
    252252#endif
    253253
    254 #ifdef HAVE_LIBSYSTEMD_JOURNAL
     254#if defined(HAVE_LIBSYSTEMD_JOURNAL) || defined(HAVE_LIBSYSTEMD)
    255255        {
    256256                .name = "systemd",
  • vendor/current/lib/util/wscript_build

    r988 r989  
    7070                    local_include=False)
    7171
    72 bld.SAMBA_LIBRARY('tevent-unix-util',
    73                   source='tevent_unix.c',
    74                   local_include=False,
    75                   deps='tevent',
    76                   public_headers='tevent_unix.h',
    77                   header_path=[ ('*', 'util') ],
    78                   pc_files=[],
    79                   vnum='0.0.1')
     72if bld.env.SAMBA_UTIL_CORE_ONLY:
    8073
    81 if not bld.env.SAMBA_UTIL_CORE_ONLY:
     74    bld.SAMBA_LIBRARY('tevent-util',
     75                      source='tevent_unix.c',
     76                      local_include=False,
     77                      deps='tevent',
     78                      private_library=True)
     79
     80else:
    8281
    8382    bld.env.public_headers_skip.append('charset_compat.h')
     
    142141
    143142    bld.SAMBA_LIBRARY('tevent-util',
    144                       source='tevent_ntstatus.c tevent_werror.c',
     143                      source='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
    145144                      local_include=False,
    146                       public_deps='tevent samba-errors tevent-unix-util',
    147                       public_headers='tevent_ntstatus.h tevent_werror.h',
     145                      public_deps='tevent samba-errors',
     146                      public_headers='tevent_ntstatus.h tevent_unix.h tevent_werror.h',
    148147                      header_path=[ ('*', 'util') ],
    149148                      pc_files=[],
Note: See TracChangeset for help on using the changeset viewer.