1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-21 18:04:06 +03:00

414 Commits

Author SHA1 Message Date
Andrew Bartlett
3b5bc93e9d 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
(This used to be commit 31f4827acc2a2f00399a5528fc83a0dae5cebaf4)
2003-03-15 07:14:55 +00:00
Martin Pool
9951cca72f In Valgrind 1.9.4, the headers have moved to <valgrind/valgrind.h>,
etc.  So check for that as well as the old names.
(This used to be commit 1ffa4d75b75979b8abb409634212ce43a0826467)
2003-03-13 06:16:51 +00:00
Martin Pool
cb1de38cfd Check for valgrind.h
(This used to be commit 0ece70d631bf095bf9c8819180b6c59990159cd0)
2003-03-10 00:37:25 +00:00
Andrew Bartlett
ce7f54e953 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
(This used to be commit ce618624b7df797e228f8ef0f19820b318c62ae9)
2003-03-05 09:33:43 +00:00
Andrew Bartlett
20d0bb2310 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
(This used to be commit 284479bf388f5e39d9be78eeb1ac6cdd001fb8df)
2003-02-26 12:31:17 +00:00
Andrew Bartlett
eb64538dba Patch from Luke Howard to add mutual kerberos authentication, and SMB session
keys for kerberos authentication.

Andrew Bartlett
(This used to be commit 8b798f03dbbdd670ff9af4eb46f7b0845c611e0f)
2003-02-24 11:09:21 +00:00
Andrew Bartlett
0dde23a7b2 Fixes from Paul Green and vorlon@debian.org for building shared libraries
(make it possible to build both shared and static) and -lcrypt handling.
(This used to be commit 30510f50077fd157664c127ac0182ce26843d43f)
2003-02-22 12:19:18 +00:00
Alexander Bokovoy
02cb49bffa 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.
(This used to be commit 747d2d70a9eb4d9222d7b63e5fcec269eda76672)
2003-02-19 13:24:06 +00:00
Jim McDonough
e354fd27cb Add support for detecting method of listing encryption types (MIT v Heimdal)
(This used to be commit 48dcf5b97f2d53617c41237e09369ec678ab65e9)
2003-02-19 00:50:38 +00:00
Andrew Bartlett
b70258af01 Patch from vorlon@debian.org to split out our -lacl dependency to only smbd
and vfstest.
(This used to be commit bcbc2213230e95d732a774b5aee67295fba4380b)
2003-02-18 00:54:22 +00:00
Andrew Bartlett
b2a253bd47 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
(This used to be commit 14b38c004f4bd5b695d04941b03e3bfa31372da3)
2003-02-17 00:07:38 +00:00
Alexander Bokovoy
22c875943d 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.
(This used to be commit 643172ac1a9b53823d704690eb03120074bbef78)
2003-02-15 22:51:15 +00:00
Alexander Bokovoy
9e99ad57ea When checking for tgetent, include libtinfo from recent Ncurses as well
(This used to be commit c88a5b1abaaee9aea3ece5677fce8b79bcd00552)
2003-02-15 15:50:24 +00:00
Alexander Bokovoy
7f6fdf49cb Add support for krb5-config from recent MIT and Heimdal. And fallback to traditional guessing only if krb5-config was not found.
(This used to be commit ca27334ba0f2ffbe0fd2a18ef5edf644d4e52190)
2003-02-15 15:47:32 +00:00
Jeremy Allison
fbdda574d8 Fixes for HPUX only having limited POSIX lock range from Michael Steffens <michael.steffens@hp.com>
Jeremy.
(This used to be commit ba0f47f78db488bd8dcd59023f48aa77a1cb2c27)
2003-02-12 20:38:02 +00:00
Andrew Bartlett
baff308f16 As metze mentioned, this is the proper way to find perl...
Andrew Bartlett
(This used to be commit f364921864bf4c33580c432f0d328c7ffc48a7df)
2003-02-10 10:36:09 +00:00
Jim McDonough
d74edbb483 Try to allow old and new heimdal installs
(This used to be commit 29d25382ac394707da372d4af2b828bfcd0d6874)
2003-02-04 01:39:06 +00:00
Jim McDonough
f589ec26d2 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...
(This used to be commit 44fd5c827537bd14c2220f62f5e44190247ae556)
2003-02-03 18:10:27 +00:00
Jelmer Vernooij
4e8a085923 NetBSD also supports dynamic libs
(This used to be commit dbb29495e7cd94b4ad07efd656d021d9551f5eb6)
2003-02-01 11:00:39 +00:00
Jeremy Allison
13e5145b1a Fix kerberos compile after the tpot massicre :-).
Jeremy
(This used to be commit d63849db6d02b1a9430072e6e15a67e1c526e5e7)
2003-01-30 20:16:18 +00:00
Gerald Carter
a7f3709720 Straus VOS detection patches from Paul Green
(This used to be commit 726181537db6bdd299fd9256a5e6def6b4b8ae33)
2003-01-30 17:04:47 +00:00
Gerald Carter
4571637a4b patch from Paul Green to only build libsmbclient.so on platforms that support shared libraries
(This used to be commit f739a7263d9da6edc2ecba5b942253c22f7cb3f8)
2003-01-28 20:55:09 +00:00
Richard Sharpe
412a142d8c One more try to fix the GNU Make dependency
(This used to be commit 84b6f32cff2096ac44778160ed2c17ca271d6d45)
2003-01-27 07:57:59 +00:00
Richard Sharpe
c924528c86 Commit just a little more infrastructure for HAVE_GETDIRENTRIES
(This used to be commit fdd449fe7b4e858765f485cbbe2cc1b91a4e0c53)
2003-01-24 18:58:52 +00:00
Jeremy Allison
e97e51f5fd More fixes getting us closer to full Heimdal compile....
Jeremy.
(This used to be commit 193cc4f4fc876c66e97ea6b82bae431d0247c1fa)
2003-01-21 06:23:10 +00:00
Jeremy Allison
a45db02a82 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.
(This used to be commit 77aeb262ef7c7cd3d206afe2d5445caaca943dfd)
2003-01-19 22:25:34 +00:00
Jim McDonough
9eb368e068 Enable dynamic loading of RPC modules. See docs/textdocs/RPC_PLUGGIN.txt for instructions.
(This used to be commit d51e12df78ff8fc721d693fedbd1c633f39edd49)
2003-01-17 20:57:26 +00:00
Jeremy Allison
e4af5eaca6 More Heimdal changes. Still not compiling with Heimdal yet...
Jeremy.
(This used to be commit c3544c119e4cafb817479b4c5dfae178c3de000b)
2003-01-16 02:58:25 +00:00
Jeremy Allison
4375fe73ba 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.
(This used to be commit a776fbef3244ae82a17c57a7f62de115fd023c86)
2003-01-16 02:39:58 +00:00
Martin Pool
ac4869ad2a 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.
(This used to be commit 468c487df42c6fc25d1862f36995b3d9a78902ff)
2003-01-15 05:00:04 +00:00
Herb Lewis
a84db36fae IRIX uses libns_winbind.so instead of libnss_winbind.so
(This used to be commit 50adb8cc1074e9bedac365a92db96c5f01f30223)
2003-01-15 01:05:35 +00:00
Martin Pool
13e1d993ff Fix typo in comment.
(This used to be commit 26660f939f0e0650d54631bf8243b22f32b64132)
2003-01-13 04:57:21 +00:00
Richard Sharpe
b3c3701c07 For some reason, the configure tests for sendfile support in FreeBSD
were broken. This works for 4.3 and 4.6.2.
(This used to be commit 91e2d21bd1401ca874c59f4d93f8b429c38b642d)
2002-12-27 22:55:11 +00:00
Tim Potter
bb2aa240de Remove FILE_MACRO as __FILE__ is ANSI C.
(This used to be commit 2a9d183cf6ae8333dc7d9d9445c17dce005c1d24)
2002-12-04 23:57:15 +00:00
Jeremy Allison
3cb1f90578 Make sure we have a default st_blocksize.
Jeremy.
(This used to be commit 9cf56dc97733589d5591990b44c883c7c61d1ea2)
2002-12-04 19:47:18 +00:00
Jeremy Allison
9dc3ec5af3 Fix for 64 bit issues with oplocks and allocation size.
Jeremy.
(This used to be commit 4a9c995e50b24e6ee6ec58c46da32100a8197724)
2002-12-04 03:12:28 +00:00
Tim Potter
2872557a69 Defaulting python breaks the clean target it python isn't installed.
(This used to be commit 5739ee4e63a35d7778506047ae3ad2ddceb69ec5)
2002-12-03 22:04:54 +00:00
Tim Potter
e21df94c52 Fixes for EXEEXT - must use \$ signs when you want an actual $ sign to
be used.
(This used to be commit 8c306804c6f3f0523ff5347e4b9360474d696a50)
2002-12-03 05:44:36 +00:00
Andrew Bartlett
f238a3e58b Patch from Paul Green to detect exe extensions, needed for Stratus VOS.
Andrew Bartlett
(This used to be commit 3f5608c7e0175184fa599176178d391d54087b3d)
2002-12-01 01:35:40 +00:00
Tim Potter
7916923943 Fix up smbwrapper target.
(This used to be commit f5fa4801ceb56b21facccb382db09165936df319)
2002-11-29 01:19:27 +00:00
Gerald Carter
4060d198bf merging changes from SAMBA_3_0 relating to RPM packaging
(This used to be commit 1cf0cfa1b7f00946c439b2b1a30ab3981df4a459)
2002-11-27 16:59:31 +00:00
Tim Potter
4c3f069028 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.
(This used to be commit d6dfe3ea69d4672339559389c6fb16e78a9152b0)
2002-11-22 06:54:12 +00:00
Martin Pool
d18bcbb174 If you don't specify --with-python, we assume "python" anyhow, because
the extensions are not built until you specifically "make python_ext".
(This used to be commit 47c5c2209e3999b8f58204c978b30a9dd646497a)
2002-11-21 01:33:42 +00:00
Andrew Bartlett
f85da55c37 Remove the assumption that all Solaris has -lsendfile.
Andrew Bartlett
(This used to be commit efa639c5cef51f2ca903c08d2ad19db70ab7206c)
2002-11-15 21:56:14 +00:00
Andrew Bartlett
973645cf2d patch from aedil@alchar.org to correctly detect solaris workshop CC's ability
to build shared libs (but not with .po suffix).

Andrew Bartlett
(This used to be commit 2fd47d0c25bdf1d5351f79164c6cb35b83a9cc5f)
2002-11-15 21:15:51 +00:00
Jelmer Vernooij
52412699c1 Rename pdb_mysql and pdb_xml to 'mysql' and 'xml'
(This used to be commit 7b860414b11ec3b2ecb34c515536c598322f06ee)
2002-11-15 17:03:58 +00:00
Andrew Bartlett
8a2a3d0e6b When testing for /usr/include/heimdal, don't include /usr/heimdal/include
instead :-)
(This used to be commit 9d8aa4bd51736709a9295791f54c9481b876699f)
2002-11-15 13:59:33 +00:00
Jelmer Vernooij
2aaf85730a 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)
(This used to be commit 5f16343e0d7c8120a7a5786097b8920a5b7d047b)
2002-11-13 21:51:08 +00:00
Jelmer Vernooij
1a03a47249 Only add modules/pdb_xml.so and modules/pdb_mysql.so to the 'modules' target if
the libs they depend on are available
(This used to be commit 018a44055d6a8435528279523567f9a86b2f3069)
2002-11-13 13:33:02 +00:00
Jelmer Vernooij
34cd7f1840 Don't build Makefile.in in examples/VFS/
(This used to be commit 98cb778cb7d48dd545b5dcf395567defd0198f86)
2002-11-13 13:23:02 +00:00