Changeset 832


Ignore:
Timestamp:
Nov 14, 2013, 4:49:48 PM (12 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update Samba core to 3.5.22

Location:
branches/samba-3.5.x
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.5.x/WHATSNEW.txt

    r774 r832  
     1                   ==============================
     2                   Release Notes for Samba 3.5.22
     3                          August 05, 2013
     4                   ==============================
     5
     6
     7This is a security release in order to address
     8CVE-2013-4124 (Missing integer wrap protection in EA list reading can cause
     9server to loop with DOS).
     10
     11o  CVE-2013-4124:
     12   All current released versions of Samba are vulnerable to a denial of
     13   service on an authenticated or guest connection. A malformed packet
     14   can cause the smbd server to loop the CPU performing memory
     15   allocations and preventing any further service.
     16
     17   A connection to a file share, or a local account is needed to exploit
     18   this problem, either authenticated or unauthenticated if guest
     19   connections are allowed.
     20
     21   This flaw is not exploitable beyond causing the code to loop
     22   allocating memory, which may cause the machine to exceed memory
     23   limits.
     24
     25
     26Changes since 3.5.21:
     27---------------------
     28
     29o   Jeremy Allison <jra@samba.org>
     30    * BUG 10010: CVE-2013-4124: Missing integer wrap protection in EA list
     31      reading can cause server to loop with DOS.
     32
     33
     34######################################################################
     35Reporting bugs & Development Discussion
     36#######################################
     37
     38Please discuss this release on the samba-technical mailing list or by
     39joining the #samba-technical IRC channel on irc.freenode.net.
     40
     41If you do report problems then please try to send high quality
     42feedback. If you don't provide vital information to help us track down
     43the problem then you will probably be ignored.  All bug reports should
     44be filed under the Samba 3.5 product in the project's Bugzilla
     45database (https://bugzilla.samba.org/).
     46
     47
     48======================================================================
     49== Our Code, Our Bugs, Our Responsibility.
     50== The Samba Team
     51======================================================================
     52
     53
     54Release notes for older releases follow:
     55----------------------------------------
     56
    157                   ==============================
    258                   Release Notes for Samba 3.5.21
     
    62118
    63119
    64 Release notes for older releases follow:
    65 ----------------------------------------
     120----------------------------------------------------------------------
     121
    66122
    67123                   ==============================
  • branches/samba-3.5.x/lib/tdb/common/tdb_private.h

    r657 r832  
    3838#include "tdb.h"
    3939
    40 /* #define TDB_TRACE 1 */
     40#define TDB_TRACE 0
    4141#ifndef HAVE_GETPAGESIZE
    4242#define getpagesize() 0x2000
  • branches/samba-3.5.x/lib/tdb/tools/tdbdump.c

    r414 r832  
    5656        TDB_CONTEXT *tdb;
    5757        TDB_DATA key, value;
    58        
    5958        tdb = tdb_open(fname, 0, 0, O_RDONLY, 0);
    6059        if (!tdb) {
  • branches/samba-3.5.x/packaging/RHEL-CTDB/samba.spec

    r774 r832  
    66Packager: Samba Team <samba@samba.org>
    77Name:         samba
    8 Version:      3.5.21
     8Version:      3.5.22
    99Release:      1GITHASH
    1010Epoch:        0
  • branches/samba-3.5.x/packaging/RHEL/makerpms.sh

    r774 r832  
    2121USERID=`id -u`
    2222GRPID=`id -g`
    23 VERSION='3.5.21'
     23VERSION='3.5.22'
    2424REVISION=''
    2525SPECFILE="samba.spec"
  • branches/samba-3.5.x/packaging/RHEL/samba.spec

    r774 r832  
    1212Packager: Samba Team <samba@samba.org>
    1313Name:         samba
    14 Version:      3.5.21
     14Version:      3.5.22
    1515Release:      1
    1616Epoch:        0
  • branches/samba-3.5.x/source3/VERSION

    r774 r832  
    2626SAMBA_VERSION_MAJOR=3
    2727SAMBA_VERSION_MINOR=5
    28 SAMBA_VERSION_RELEASE=21
     28SAMBA_VERSION_RELEASE=22
    2929
    3030########################################################
  • branches/samba-3.5.x/source3/build.cmd

    r824 r832  
    347347SetCLFlags: procedure expose cacheFile
    348348
    349     call lineout cacheFile, "CFLAGS='-D__EMX__ -DOS2  -D__OS2__ -D__ST_MT_ERRNO__ -O2 -march=pentium -mtune=pentium4'";
    350     call lineout cacheFile, "CXXFLAGS='-D__EMX__ -DOS2 -D__OS2__ -D__ST_MT_ERRNO__ -O2 -march=pentium -mtune=pentium4'";
     349    call lineout cacheFile, "CFLAGS='-D__EMX__ -DOS2  -D__OS2__ -D__ST_MT_ERRNO__ -O1 -march=pentium -mtune=pentium4'";
     350    call lineout cacheFile, "CXXFLAGS='-D__EMX__ -DOS2 -D__OS2__ -D__ST_MT_ERRNO__ -O1 -march=pentium -mtune=pentium4'";
    351351    call lineout cacheFile, "LDFLAGS='-Zmap -Zargs-wild -Zbin-files -Zhigh-mem -D__ST_MT_ERRNO__ -s'";
    352352/*  address cmd 'SET AR=emxomfar'
  • branches/samba-3.5.x/source3/configure

    r824 r832  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.68 for Samba 3.
     3# Generated by GNU Autoconf 2.69 for Samba 3.
    44#
    55# Report bugs to <samba-technical@samba.org>.
    66#
    77#
    8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
    9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
    10 # Foundation, Inc.
     8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
    119#
    1210#
     
    137135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    138136
     137# Use a proper internal environment variable to ensure we don't fall
     138  # into an infinite loop, continuously re-executing ourselves.
     139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
     140    _as_can_reexec=no; export _as_can_reexec;
     141    # We cannot yet assume a decent shell, so we have to provide a
     142# neutralization value for shells without unset; and this also
     143# works around shells that cannot unset nonexistent variables.
     144# Preserve -v and -x to the replacement shell.
     145BASH_ENV=/dev/null
     146ENV=/dev/null
     147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
     148case $- in # ((((
     149  *v*x* | *x*v* ) as_opts=-vx ;;
     150  *v* ) as_opts=-v ;;
     151  *x* ) as_opts=-x ;;
     152  * ) as_opts= ;;
     153esac
     154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
     155# Admittedly, this is quite paranoid, since all the known shells bail
     156# out after a failed `exec'.
     157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
     158as_fn_exit 255
     159  fi
     160  # We don't want this to propagate to other subprocesses.
     161          { _as_can_reexec=; unset _as_can_reexec;}
    139162if test "x$CONFIG_SHELL" = x; then
    140163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
     
    170193  exitcode=1; echo positional parameters were not saved.
    171194fi
    172 test x\$exitcode = x0 || exit 1"
     195test x\$exitcode = x0 || exit 1
     196test -x / || exit 1"
    173197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    174198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
     
    215239
    216240      if test "x$CONFIG_SHELL" != x; then :
    217   # We cannot yet assume a decent shell, so we have to provide a
    218         # neutralization value for shells without unset; and this also
    219         # works around shells that cannot unset nonexistent variables.
    220         # Preserve -v and -x to the replacement shell.
    221         BASH_ENV=/dev/null
    222         ENV=/dev/null
    223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    224         export CONFIG_SHELL
    225         case $- in # ((((
    226           *v*x* | *x*v* ) as_opts=-vx ;;
    227           *v* ) as_opts=-v ;;
    228           *x* ) as_opts=-x ;;
    229           * ) as_opts= ;;
    230         esac
    231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
     241  export CONFIG_SHELL
     242             # We cannot yet assume a decent shell, so we have to provide a
     243# neutralization value for shells without unset; and this also
     244# works around shells that cannot unset nonexistent variables.
     245# Preserve -v and -x to the replacement shell.
     246BASH_ENV=/dev/null
     247ENV=/dev/null
     248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
     249case $- in # ((((
     250  *v*x* | *x*v* ) as_opts=-vx ;;
     251  *v* ) as_opts=-v ;;
     252  *x* ) as_opts=-x ;;
     253  * ) as_opts= ;;
     254esac
     255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
     256# Admittedly, this is quite paranoid, since all the known shells bail
     257# out after a failed `exec'.
     258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
     259exit 255
    232260fi
    233261
     
    332360
    333361} # as_fn_mkdir_p
     362
     363# as_fn_executable_p FILE
     364# -----------------------
     365# Test if FILE is an executable regular file.
     366as_fn_executable_p ()
     367{
     368  test -f "$1" && test -x "$1"
     369} # as_fn_executable_p
    334370# as_fn_append VAR VALUE
    335371# ----------------------
     
    453489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    454490
     491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
     492  # already done that, so ensure we don't try to do so again and fall
     493  # in an infinite loop.  This has already happened in practice.
     494  _as_can_reexec=no; export _as_can_reexec
    455495  # Don't try to exec as it changes $[0], causing all sort of problems
    456496  # (the dirname of $[0] is not the place where we might find the
     
    487527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    488528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    489     # In both cases, we have to default to `cp -p'.
     529    # In both cases, we have to default to `cp -pR'.
    490530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    491       as_ln_s='cp -p'
     531      as_ln_s='cp -pR'
    492532  elif ln conf$$.file conf$$ 2>/dev/null; then
    493533    as_ln_s=ln
    494534  else
    495     as_ln_s='cp -p'
     535    as_ln_s='cp -pR'
    496536  fi
    497537else
    498   as_ln_s='cp -p'
     538  as_ln_s='cp -pR'
    499539fi
    500540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     
    508548fi
    509549
    510 if test -x / >/dev/null 2>&1; then
    511   as_test_x='test -x'
    512 else
    513   if ls -dL / >/dev/null 2>&1; then
    514     as_ls_L_option=L
    515   else
    516     as_ls_L_option=
    517   fi
    518   as_test_x='
    519     eval sh -c '\''
    520       if test -d "$1"; then
    521         test -d "$1/.";
    522       else
    523         case $1 in #(
    524         -*)set "./$1";;
    525         esac;
    526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
    527         ???[sx]*):;;*)false;;esac;fi
    528     '\'' sh
    529   '
    530 fi
    531 as_executable_p=$as_test_x
     550as_test_x='test -x'
     551as_executable_p=as_fn_executable_p
    532552
    533553# Sed expression to map a string onto a valid CPP name.
     
    14981518  if test "x$build_alias" = x; then
    14991519    cross_compiling=maybe
    1500     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
    1501     If a cross compiler is detected then cross compile mode will be used" >&2
    15021520  elif test "x$build_alias" != "x$host_alias"; then
    15031521    cross_compiling=yes
     
    18961914  cat <<\_ACEOF
    18971915Samba configure 3
    1898 generated by GNU Autoconf 2.68
    1899 
    1900 Copyright (C) 2010 Free Software Foundation, Inc.
     1916generated by GNU Autoconf 2.69
     1917
     1918Copyright (C) 2012 Free Software Foundation, Inc.
    19011919This configure script is free software; the Free Software Foundation
    19021920gives unlimited permission to copy, distribute and modify it.
     
    21752193       } && test -s conftest$ac_exeext && {
    21762194         test "$cross_compiling" = yes ||
    2177          $as_test_x conftest$ac_exeext
     2195         test -x conftest$ac_exeext
    21782196       }; then :
    21792197  ac_retval=0
     
    22652283{
    22662284static int test_array [1 - 2 * !(($2) >= 0)];
    2267 test_array [0] = 0
     2285test_array [0] = 0;
     2286return test_array [0];
    22682287
    22692288  ;
     
    22812300{
    22822301static int test_array [1 - 2 * !(($2) <= $ac_mid)];
    2283 test_array [0] = 0
     2302test_array [0] = 0;
     2303return test_array [0];
    22842304
    22852305  ;
     
    23072327{
    23082328static int test_array [1 - 2 * !(($2) < 0)];
    2309 test_array [0] = 0
     2329test_array [0] = 0;
     2330return test_array [0];
    23102331
    23112332  ;
     
    23232344{
    23242345static int test_array [1 - 2 * !(($2) >= $ac_mid)];
    2325 test_array [0] = 0
     2346test_array [0] = 0;
     2347return test_array [0];
    23262348
    23272349  ;
     
    23572379{
    23582380static int test_array [1 - 2 * !(($2) <= $ac_mid)];
    2359 test_array [0] = 0
     2381test_array [0] = 0;
     2382return test_array [0];
    23602383
    23612384  ;
     
    26002623
    26012624It was created by Samba $as_me 3, which was
    2602 generated by GNU Autoconf 2.68.  Invocation command line was
     2625generated by GNU Autoconf 2.69.  Invocation command line was
    26032626
    26042627  $ $0 $@
     
    37643787  test -z "$as_dir" && as_dir=.
    37653788    for ac_exec_ext in '' $ac_executable_extensions; do
    3766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    37673790    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    37683791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    38043827  test -z "$as_dir" && as_dir=.
    38053828    for ac_exec_ext in '' $ac_executable_extensions; do
    3806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3829  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    38073830    ac_cv_prog_ac_ct_CC="gcc"
    38083831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    38573880  test -z "$as_dir" && as_dir=.
    38583881    for ac_exec_ext in '' $ac_executable_extensions; do
    3859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3882  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    38603883    ac_cv_prog_CC="${ac_tool_prefix}cc"
    38613884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    38983921  test -z "$as_dir" && as_dir=.
    38993922    for ac_exec_ext in '' $ac_executable_extensions; do
    3900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    39013924    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    39023925       ac_prog_rejected=yes
     
    39563979  test -z "$as_dir" && as_dir=.
    39573980    for ac_exec_ext in '' $ac_executable_extensions; do
    3958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3981  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    39593982    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    39603983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    40004023  test -z "$as_dir" && as_dir=.
    40014024    for ac_exec_ext in '' $ac_executable_extensions; do
    4002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    40034026    ac_cv_prog_ac_ct_CC="$ac_prog"
    40044027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    44464469#include <stdarg.h>
    44474470#include <stdio.h>
    4448 #include <sys/types.h>
    4449 #include <sys/stat.h>
     4471struct stat;
    44504472/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    44514473struct buf { int x; };
     
    46814703}
    46824704_ACEOF
    4683 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
     4705for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
    46844706do
    46854707  CC="$ac_save_CC $ac_arg"
     
    48764898    for ac_exec_ext in '' $ac_executable_extensions; do
    48774899      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
    4878       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
     4900      as_fn_executable_p "$ac_path_GREP" || continue
    48794901# Check for GNU ac_path_GREP and select it if it is found.
    48804902  # Check for GNU $ac_path_GREP
     
    49424964    for ac_exec_ext in '' $ac_executable_extensions; do
    49434965      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
    4944       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
     4966      as_fn_executable_p "$ac_path_EGREP" || continue
    49454967# Check for GNU ac_path_EGREP and select it if it is found.
    49464968  # Check for GNU $ac_path_EGREP
     
    51495171/* end confdefs.h.  */
    51505172
    5151 #         define __EXTENSIONS__ 1
    5152           $ac_includes_default
     5173#         define __EXTENSIONS__ 1
     5174          $ac_includes_default
    51535175int
    51545176main ()
     
    56375659    for ac_prog in ginstall scoinst install; do
    56385660      for ac_exec_ext in '' $ac_executable_extensions; do
    5639         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
     5661        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    56405662          if test $ac_prog = install &&
    56415663            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     
    59565978rm -rf conftest*
    59575979  fi
     5980
     5981
    59585982fi
    59595983
     
    69877011  test -z "$as_dir" && as_dir=.
    69887012    for ac_exec_ext in '' $ac_executable_extensions; do
    6989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7013  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    69907014    ac_cv_prog_AWK="$ac_prog"
    69917015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    70387062  test -z "$as_dir" && as_dir=.
    70397063    for ac_exec_ext in '' $ac_executable_extensions; do
    7040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7064  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    70417065    ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
    70427066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    71167140  test -z "$as_dir" && as_dir=.
    71177141    for ac_exec_ext in '' $ac_executable_extensions; do
    7118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7142  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    71197143    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
    71207144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    71597183  test -z "$as_dir" && as_dir=.
    71607184    for ac_exec_ext in '' $ac_executable_extensions; do
    7161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    71627186    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
    71637187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    72147238  test -z "$as_dir" && as_dir=.
    72157239    for ac_exec_ext in '' $ac_executable_extensions; do
    7216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    72177241    ac_cv_prog_AR="${ac_tool_prefix}ar"
    72187242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    72547278  test -z "$as_dir" && as_dir=.
    72557279    for ac_exec_ext in '' $ac_executable_extensions; do
    7256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7280  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    72577281    ac_cv_prog_ac_ct_AR="ar"
    72587282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    1333513359main ()
    1333613360{
    13337 /* FIXME: Include the comments suggested by Paul. */
     13361
    1333813362#ifndef __cplusplus
    13339   /* Ultrix mips cc rejects this.  */
     13363  /* Ultrix mips cc rejects this sort of thing.  */
    1334013364  typedef int charset[2];
    13341   const charset cs;
     13365  const charset cs = { 0, 0 };
    1334213366  /* SunOS 4.1.1 cc rejects this.  */
    1334313367  char const *const *pcpcc;
     
    1335613380  ppc = (char**) pcpcc;
    1335713381  pcpcc = (char const *const *) ppc;
    13358   { /* SCO 3.2v4 cc rejects this.  */
    13359     char *t;
     13382  { /* SCO 3.2v4 cc rejects this sort of thing.  */
     13383    char tx;
     13384    char *t = &tx;
    1336013385    char const *s = 0 ? (char *) 0 : (char const *) 0;
    1336113386
     
    1337313398    ++p;
    1337413399  }
    13375   { /* AIX XL C 1.02.0.0 rejects this saying
     13400  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
    1337613401       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    13377     struct s { int j; const int *ap[3]; };
    13378     struct s *b; b->j = 5;
     13402    struct s { int j; const int *ap[3]; } bx;
     13403    struct s *b = &bx; b->j = 5;
    1337913404  }
    1338013405  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
     
    1368213707{
    1368313708static int test_array [1 - 2 * !(((char) -1) < 0)];
    13684 test_array [0] = 0
     13709test_array [0] = 0;
     13710return test_array [0];
    1368513711
    1368613712  ;
     
    1390813934  test -z "$as_dir" && as_dir=.
    1390913935    for ac_exec_ext in '' $ac_executable_extensions; do
    13910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     13936  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1391113937    ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    1391213938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    1821418240  test -z "$as_dir" && as_dir=.
    1821518241    for ac_exec_ext in '' $ac_executable_extensions; do
    18216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     18242  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1821718243    ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
    1821818244    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    1871018736  test -z "$as_dir" && as_dir=.
    1871118737    for ac_exec_ext in '' $ac_executable_extensions; do
    18712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     18738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1871318739    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    1871418740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    1875318779  test -z "$as_dir" && as_dir=.
    1875418780    for ac_exec_ext in '' $ac_executable_extensions; do
    18755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     18781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1875618782    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    1875718783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    2485124877  test -z "$as_dir" && as_dir=.
    2485224878    for ac_exec_ext in '' $ac_executable_extensions; do
    24853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     24879  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2485424880    ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
    2485524881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    3912939155  test -z "$as_dir" && as_dir=.
    3913039156    for ac_exec_ext in '' $ac_executable_extensions; do
    39131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     39157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3913239158    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
    3913339159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    3917339199  test -z "$as_dir" && as_dir=.
    3917439200    for ac_exec_ext in '' $ac_executable_extensions; do
    39175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     39201  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3917639202    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
    3917739203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    3922539251  test -z "$as_dir" && as_dir=.
    3922639252    for ac_exec_ext in '' $ac_executable_extensions; do
    39227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     39253  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3922839254    ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    3922939255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    3926939295  test -z "$as_dir" && as_dir=.
    3927039296    for ac_exec_ext in '' $ac_executable_extensions; do
    39271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     39297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3927239298    ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    3927339299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    3959239618  test -z "$as_dir" && as_dir=.
    3959339619    for ac_exec_ext in '' $ac_executable_extensions; do
    39594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     39620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3959539621    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
    3959639622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    3963639662  test -z "$as_dir" && as_dir=.
    3963739663    for ac_exec_ext in '' $ac_executable_extensions; do
    39638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     39664  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3963939665    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
    3964039666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    3968839714  test -z "$as_dir" && as_dir=.
    3968939715    for ac_exec_ext in '' $ac_executable_extensions; do
    39690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     39716  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3969139717    ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    3969239718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    3973239758  test -z "$as_dir" && as_dir=.
    3973339759    for ac_exec_ext in '' $ac_executable_extensions; do
    39734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     39760  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3973539761    ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    3973639762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    4205842084  test -z "$as_dir" && as_dir=.
    4205942085    for ac_exec_ext in '' $ac_executable_extensions; do
    42060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     42086  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    4206142087    ac_cv_prog_LEX="$ac_prog"
    4206242088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    4209042116c { yymore (); }
    4209142117d { yyless (1); }
    42092 e { yyless (input () != 0); }
     42118e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
     42119    yyless ((input () != 0)); }
    4209342120f { unput (yytext[0]); }
    4209442121. { BEGIN INITIAL; }
     
    4223142258  test -z "$as_dir" && as_dir=.
    4223242259    for ac_exec_ext in '' $ac_executable_extensions; do
    42233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     42260  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    4223442261    ac_cv_prog_YACC="$ac_prog"
    4223542262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    4412844155  test -z "$as_dir" && as_dir=.
    4412944156    for ac_exec_ext in '' $ac_executable_extensions; do
    44130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     44157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    4413144158    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    4413244159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    4431044337  test -z "$as_dir" && as_dir=.
    4431144338    for ac_exec_ext in '' $ac_executable_extensions; do
    44312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     44339  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    4431344340    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    4431444341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    4461544642  test -z "$as_dir" && as_dir=.
    4461644643    for ac_exec_ext in '' $ac_executable_extensions; do
    44617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     44644  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    4461844645    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    4461944646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    4489244919  test -z "$as_dir" && as_dir=.
    4489344920    for ac_exec_ext in '' $ac_executable_extensions; do
    44894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     44921  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    4489544922    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    4489644923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    4531045337  test -z "$as_dir" && as_dir=.
    4531145338    for ac_exec_ext in '' $ac_executable_extensions; do
    45312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     45339  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    4531345340    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    4531445341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    4817548202    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    4817648203    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    48177     # In both cases, we have to default to `cp -p'.
     48204    # In both cases, we have to default to `cp -pR'.
    4817848205    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    48179       as_ln_s='cp -p'
     48206      as_ln_s='cp -pR'
    4818048207  elif ln conf$$.file conf$$ 2>/dev/null; then
    4818148208    as_ln_s=ln
    4818248209  else
    48183     as_ln_s='cp -p'
     48210    as_ln_s='cp -pR'
    4818448211  fi
    4818548212else
    48186   as_ln_s='cp -p'
     48213  as_ln_s='cp -pR'
    4818748214fi
    4818848215rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     
    4824448271fi
    4824548272
    48246 if test -x / >/dev/null 2>&1; then
    48247   as_test_x='test -x'
    48248 else
    48249   if ls -dL / >/dev/null 2>&1; then
    48250     as_ls_L_option=L
    48251   else
    48252     as_ls_L_option=
    48253   fi
    48254   as_test_x='
    48255     eval sh -c '\''
    48256       if test -d "$1"; then
    48257         test -d "$1/.";
    48258       else
    48259         case $1 in #(
    48260         -*)set "./$1";;
    48261         esac;
    48262         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
    48263         ???[sx]*):;;*)false;;esac;fi
    48264     '\'' sh
    48265   '
    48266 fi
    48267 as_executable_p=$as_test_x
     48273
     48274# as_fn_executable_p FILE
     48275# -----------------------
     48276# Test if FILE is an executable regular file.
     48277as_fn_executable_p ()
     48278{
     48279  test -f "$1" && test -x "$1"
     48280} # as_fn_executable_p
     48281as_test_x='test -x'
     48282as_executable_p=as_fn_executable_p
    4826848283
    4826948284# Sed expression to map a string onto a valid CPP name.
     
    4828748302ac_log="
    4828848303This file was extended by Samba $as_me 3, which was
    48289 generated by GNU Autoconf 2.68.  Invocation command line was
     48304generated by GNU Autoconf 2.69.  Invocation command line was
    4829048305
    4829148306  CONFIG_FILES    = $CONFIG_FILES
     
    4835348368ac_cs_version="\\
    4835448369Samba config.status 3
    48355 configured by $0, generated by GNU Autoconf 2.68,
     48370configured by $0, generated by GNU Autoconf 2.69,
    4835648371  with options \\"\$ac_cs_config\\"
    4835748372
    48358 Copyright (C) 2010 Free Software Foundation, Inc.
     48373Copyright (C) 2012 Free Software Foundation, Inc.
    4835948374This config.status script is free software; the Free Software Foundation
    4836048375gives unlimited permission to copy, distribute and modify it."
     
    4844648461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    4844748462if \$ac_cs_recheck; then
    48448   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     48463  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
    4844948464  shift
    4845048465  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  • branches/samba-3.5.x/source3/include/config.h.in

    r773 r832  
    33563356#undef YYTEXT_POINTER
    33573357
     3358/* Enable large inode numbers on Mac OS X 10.5.  */
     3359#ifndef _DARWIN_USE_64_BIT_INODE
     3360# define _DARWIN_USE_64_BIT_INODE 1
     3361#endif
     3362
    33583363/* File offset bits */
    33593364#undef _FILE_OFFSET_BITS
  • branches/samba-3.5.x/source3/lib/util_tdb.c

    r414 r832  
    223223        va_list ap;
    224224        size_t len1, len2;
    225 
     225       
    226226        va_start(ap, fmt);
    227227        len1 = tdb_pack_va(NULL, 0, fmt, ap);
     
    635635{
    636636        int ret;
     637       
    637638        if (t1.dptr == NULL && t2.dptr != NULL) {
    638639                return -1;
  • branches/samba-3.5.x/source3/nmbd/nmbd.c

    r778 r832  
    792792
    793793#ifdef __OS2__
    794         global_Sem32Add = 1;
     794        global_Sem32Add = 1;
    795795#endif
    796796
  • branches/samba-3.5.x/source3/smbd/nttrans.c

    r736 r832  
    935935                        break;
    936936                }
     937
     938                /* Integer wrap protection for the increment. */
     939                if (offset + next_offset < offset) {
     940                        break;
     941                }
     942
    937943                offset += next_offset;
     944
     945                /* Integer wrap protection for while loop. */
     946                if (offset + 4 < offset) {
     947                        break;
     948                }
     949
    938950        }
    939951
  • branches/samba-3.5.x/source3/torture/torture.c

    r795 r832  
    22722272{
    22732273        struct cli_state *cli1;
    2274         const char *fname = "\\lockt9.lck";
     2274        const char *fname = "//lockt9.lck";
    22752275        uint16_t fnum;
    22762276        bool correct = False;
     
    23272327        if (!NT_STATUS_IS_OK(status)) {
    23282328                d_fprintf(stderr, "cli_open returned %s\n", cli_errstr(cli1));
     2329d_fprintf(stderr, "cli_open returned %s file: %s\n", cli_errstr(cli1), fname);         
    23292330                return false;
    23302331        }
Note: See TracChangeset for help on using the changeset viewer.