1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

416 Commits

Author SHA1 Message Date
Jelmer Vernooij
fa1c8eee1f Fix module names -
Jelmer Vernooij
af7bfee0c6 Put in the new modules system. It's now used by passdb and rpc. I will
put a doc about it in dev-doc later today.
-
Andrew Bartlett
31f4827acc String handling parinoia fixes.
This patch enables the compile-time checking of strings assable by means of
sizeof().  (Original code had the configure check reversed).

This is extended to all safe_strcpy() users, push_string and pull_string,
as well as the cli and srv derivitives.  There is an attempt to cap strings
at the end of the cli buffer, and clobber_region() of the speified length
(when not -1 :-).

Becouse of the way they are declared, the 'overmalloc a string' users of
safe_strcpy() have been changed to use overmalloc_safe_strcpy() (which skips
some of the checks).

This whole ball of mud worked fine, until I pulled out my 'fix' for our
statcache.  When jeremy fixes that, we should be able to get back to testing
this stuff.

This patch also includes a 'marker' of the last caller to clobber_region (ie,
the function that called pstrcpy() that called clobber_region) to assist in
debugging problems that may have smashed the stack.  This is printed at
smb_panic() time.  (Original idea and patch by metze).

It also removes some unsused functions, and #if 0's some others that are
unused but probably should be used in the near future.

For now, this patch gives us some confidence on one class of trivial parsing
error in our code.

Andrew Bartlett
-
Martin Pool
1ffa4d75b7 In Valgrind 1.9.4, the headers have moved to <valgrind/valgrind.h>,
etc.  So check for that as well as the old names.
-
Martin Pool
0ece70d631 Check for valgrind.h -
Andrew Bartlett
ce618624b7 Add a test for a useful property of the compiler - we can get link-time
failures for some compile-time properties this way.

Andrew Bartlett
-
Andrew Bartlett
284479bf38 Add -Wwrite-strings to our --enable-developer settings.
We have compiled relitivly 'clean' with this setting since I did a massive
cleanup last month.  This should help us stay that way.

Andrew Bartlett
-
Andrew Bartlett
8b798f03db Patch from Luke Howard to add mutual kerberos authentication, and SMB session
keys for kerberos authentication.

Andrew Bartlett
-
Andrew Bartlett
30510f5007 Fixes from Paul Green and vorlon@debian.org for building shared libraries
(make it possible to build both shared and static) and -lcrypt handling.
-
Alexander Bokovoy
747d2d70a9 Improve detection of iconv(3) for various platforms. M4 code is similar to what I use in Midgard for past few years, modified for Samba needs. -
Jim McDonough
48dcf5b97f Add support for detecting method of listing encryption types (MIT v Heimdal) -
Andrew Bartlett
bcbc221323 Patch from vorlon@debian.org to split out our -lacl dependency to only smbd
and vfstest.
-
Andrew Bartlett
14b38c004f People were being tripped up by the fact that we havn't updated acconfig.h
as we don't need it for autoconf 2.53.  Remove it from CVS, and assert the
newer autotools in configure.in

Andrew Bartlett
-
Alexander Bokovoy
643172ac1a Third-party configuration scripts may produce undesirable additions to CFLAGS/CPPFLAGS
and LIBS/LDFALGS. In particular, they often don't check where the appropriate libraries
were installed and pass -I/usr/include and -L/usr/lib as part of CFLAGS/LDFLAGS.

While the latter isn't dangerous, passing system include directory through -I lead
to change of its status in CPP from system to user-defined in many cases.

This patch cleans up CFLAGS/CPPFLAGS from errorenous -I/usr/include and LIBS/LDFLAGS
from -L/usr/lib. This is done as two m4 macros which are called before AC_OUTPUT.
-
Alexander Bokovoy
c88a5b1aba When checking for tgetent, include libtinfo from recent Ncurses as well -
Alexander Bokovoy
ca27334ba0 Add support for krb5-config from recent MIT and Heimdal. And fallback to traditional guessing only if krb5-config was not found. -
Jeremy Allison
ba0f47f78d Fixes for HPUX only having limited POSIX lock range from Michael Steffens <michael.steffens@hp.com>
Jeremy.
-
Andrew Bartlett
f364921864 As metze mentioned, this is the proper way to find perl...
Andrew Bartlett
-
Jim McDonough
29d25382ac Try to allow old and new heimdal installs -
Jim McDonough
44fd5c8275 Try to get build working on systems with krb runtime but not devel libs.
Let's not assume that because one dir exists the whole shebang is there...
-
Jelmer Vernooij
dbb29495e7 NetBSD also supports dynamic libs -
Jeremy Allison
d63849db6d Fix kerberos compile after the tpot massicre :-).
Jeremy
-
Gerald Carter
726181537d Straus VOS detection patches from Paul Green -
Gerald Carter
f739a7263d patch from Paul Green to only build libsmbclient.so on platforms that support shared libraries -
Richard Sharpe
84b6f32cff One more try to fix the GNU Make dependency -
Richard Sharpe
fdd449fe7b Commit just a little more infrastructure for HAVE_GETDIRENTRIES -
Jeremy Allison
193cc4f4fc More fixes getting us closer to full Heimdal compile....
Jeremy.
-
Jeremy Allison
77aeb262ef Merge in more of the SuSE patches for Heimdal. These changes show how
to add a function without an explicit #ifdef HEIMDAL which I'm trying
to avoid.
Jeremy.
-
Jim McDonough
d51e12df78 Enable dynamic loading of RPC modules. See docs/textdocs/RPC_PLUGGIN.txt for instructions. -
Jeremy Allison
c3544c119e More Heimdal changes. Still not compiling with Heimdal yet...
Jeremy.
-
Jeremy Allison
a776fbef32 Fist part of fixes to make us compile with Heimdal. Don't explicitly
detect for now, I still have vague hopes of hiding the differences
between MIT and Heimdal with a compatibility layer....
Jeremy.
-
Martin Pool
468c487df4 Fix bug where the existence of config.cache would cause functions like
yp_get_default_domain to be misdetected.

According to the autoconf manual we need to check for libraries before
looking for functions in them.
-
Herb Lewis
50adb8cc10 IRIX uses libns_winbind.so instead of libnss_winbind.so -
Martin Pool
26660f939f Fix typo in comment. -
Richard Sharpe
91e2d21bd1 For some reason, the configure tests for sendfile support in FreeBSD
were broken. This works for 4.3 and 4.6.2.
-
Tim Potter
2a9d183cf6 Remove FILE_MACRO as __FILE__ is ANSI C. -
Jeremy Allison
9cf56dc977 Make sure we have a default st_blocksize.
Jeremy.
-
Jeremy Allison
4a9c995e50 Fix for 64 bit issues with oplocks and allocation size.
Jeremy.
-
Tim Potter
5739ee4e63 Defaulting python breaks the clean target it python isn't installed. -
Tim Potter
8c306804c6 Fixes for EXEEXT - must use \$ signs when you want an actual $ sign to
be used.
-
Andrew Bartlett
3f5608c7e0 Patch from Paul Green to detect exe extensions, needed for Stratus VOS.
Andrew Bartlett
-
Tim Potter
f5fa4801ce Fix up smbwrapper target. -
Gerald Carter
1cf0cfa1b7 merging changes from SAMBA_3_0 relating to RPM packaging -
Tim Potter
d6dfe3ea69 Here's a bit of a cleanup of the {configure,Makefile}.in files. I've
now combined all the ad-hoc AC_SUBST variables into three generalised
ones:

  EXTRA_BIN_PROGS 	Additional programs to install in ${prefix}/sbin
  EXTRA_SBIN_PROGS 	Additional programs to install in ${prefix}/bin
  EXTRA_ALL_TARGETS     Additional targets to build by default
  SHLIB_PROGS           Shared library objects (pam, winbind) to build

We also build some extra stuff by default: the python extensions (if
--with-python specified), smbmount related binaries (if
--with-smbmount specified), and the samba torture suite.

The idea behind this is to have everything that is configured built by
default to detect breakage as soon as possible when people make low
level changes.
-
Martin Pool
47c5c2209e If you don't specify --with-python, we assume "python" anyhow, because
the extensions are not built until you specifically "make python_ext".
-
Andrew Bartlett
efa639c5ce Remove the assumption that all Solaris has -lsendfile.
Andrew Bartlett
-
Andrew Bartlett
2fd47d0c25 patch from aedil@alchar.org to correctly detect solaris workshop CC's ability
to build shared libs (but not with .po suffix).

Andrew Bartlett
-
Jelmer Vernooij
7b860414b1 Rename pdb_mysql and pdb_xml to 'mysql' and 'xml' -
Andrew Bartlett
9d8aa4bd51 When testing for /usr/include/heimdal, don't include /usr/heimdal/include
instead :-)
-
Jelmer Vernooij
5f16343e0d small patch to makesure we fallback to <xfs/xqm.h> if <linux/xqm.h> doesn't exist (e.g. in SuSE 8.1) (by metze) -