1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-30 20:23:49 +03:00
Commit Graph

10288 Commits

Author SHA1 Message Date
Steve French
64062d16a2 r18570: Fix up function names in cifs unix/posix extensions backend. Enable tiny quick test for torture for them 2007-10-10 14:18:48 -05:00
Andrew Tridgell
262bee07dc r18569: add really simple testing of the 'simple' ntvfs backend, so we know
when it breaks. It isn't much good as a template for developers to use
unless it works :-)
2007-10-10 14:18:48 -05:00
Andrew Tridgell
6784058923 r18568: this warning is not needed now that it is the job of the unixuid ntvfs
module to handle euid
2007-10-10 14:18:48 -05:00
Andrew Tridgell
7005806aa6 r18567: fixed the winreg js code for the new names of the fields in winreg.idl
When changing a field name in idl, please remember to check for use of
those functions in any js code as well.
2007-10-10 14:18:47 -05:00
Andrew Tridgell
555aed43ba r18566: fixed the winreg pipe and winreg tests
Jerry, there is a big difference on the wire between these two:

  [out] uint32 x;
and
  [out] uint32 *x;

if you change from

  [out] uint32 x;

then you need to change to:

  [out,ref] uint32 *x;

otherwise it changes the format on the wire, which means we are no
longer compatible with MS servers.

but be aware that even if you change to a ref ptr, you also need to
change all the client code to set all the return variables in the out
part of the structure. That's why I don't like the MIDL restriction of
forcing the use of ref pointers for output variables - it makes life
much harder when writing client code, and makes the code much more
error prone (just look at all the extra code needed to make this work
again).

I know we could auto-allocate these variables in the generated client
side NDR code, but if we did that then we would have no way of doing a
_real_ ref out pointer, which we really wanted to set to some already
allocated variable.

So please hold off on changing our idl to use the MIDL convention for
output variables until Jelmer and I have had a good "chat" about this :-)
2007-10-10 14:18:47 -05:00
Jelmer Vernooij
ab0a798c57 r18565: Fix echo.idl to be Samba3-, MIDL and midlc compatible 2007-10-10 14:18:47 -05:00
Steve French
57f5695717 r18564: update for cifs unix/posix extensions stub version to build and beginnings of smbtorture test for it 2007-10-10 14:18:47 -05:00
Andrew Tridgell
bde18f3d5c r18563: - move more of the header checks into lib/replace/
- change the test for net/if.h to do a full compile, not just an
  existance test. net/if.h is completely broken on hpux, and can never
  compile (it uses stuff before it defines it), so by using a
  AC_TRY_COMPILE() test we avoid using net/if.h on hpux, which should
  fix the build
2007-10-10 14:18:46 -05:00
Gerald Carter
694677dafe r18561: Fix [out] pointers in winreg IDL 2007-10-10 14:18:46 -05:00
Jelmer Vernooij
86b4624226 r18559: [string] always applies to the last pointer 2007-10-10 14:18:46 -05:00
Simo Sorce
4daf5f7764 r18558: Fix ShareCheck which was assuming all paths are "C:\"
Also cope with the fact that we define the FSTYPE as NTFS by default.
We never use this anywhere else, so we may just change it, but just
detect the fact and return DISK in share_classic for now.
2007-10-10 14:18:46 -05:00
Stefan Metzmacher
d9137edbdb r18555: use C:\ as default not C:
metze
2007-10-10 14:18:45 -05:00
Jelmer Vernooij
caac6cf817 r18554: Fix warnings about [out] arguments. 2007-10-10 14:18:45 -05:00
Stefan Metzmacher
04a0a5144a r18553: - confdefs.h is always included in configure checks no need to include them explicit
- undefine _XOPEN_SOURCE_EXTENDED for the AIX interface detection test
  #define _XOPEN_SOURCE_EXTENDED 1 brings in sa_len to sockaddr on Tru64
  which means the AIX code compiles...

metze
2007-10-10 14:18:45 -05:00
Simo Sorce
60076fa87d r18550: Return a path not just a disk drive 2007-10-10 14:18:45 -05:00
Stefan Metzmacher
888a769af5 r18549: move gcc version check to libreplace and reorder the tests a bit
for nicer output

metze
2007-10-10 14:18:45 -05:00
Stefan Metzmacher
8fa9852160 r18548: don't use #elif as we don't notice when 2 HAVE_IFACE_ versions are defined
try to find the problem on Tru64...where configure says the AIX method finds 1 interface
but later can't compile netif.c. (revision 18486 was the last that detects ifconf with 2 interfaces)

metze
2007-10-10 14:18:45 -05:00
Stefan Metzmacher
212fa7977d r18545: if yapp isn't availabe touch the target file, as it is commited to svn,
to prevent rebuilding.

we do

make everything
make everything
make bin/smbtorture
make test

in the buildfarm and rebuilding parts isn't that nice

metze
2007-10-10 14:18:44 -05:00
Stefan Metzmacher
1ea52d7584 r18544: - use AC_LIBREPLACE_LOCATION_CHECKS in samba4
- to get the ordering right we need to specify AC_CANONICAL_BUILD explicit
- add AC_CANONICAL_TARGET

metze
2007-10-10 14:18:44 -05:00
Simo Sorce
ae2f6d4a5a r18542: Some late nite work.
Now we can add and remove a share from the "Computer Management"
console (not yet modify!) usinf share backend = ldb
2007-10-10 14:18:44 -05:00
Andrew Tridgell
ce5d5a1872 r18541: with 100 old style searches we can run out of file descriptors on some
systems. drop to 50
2007-10-10 14:18:44 -05:00
Andrew Tridgell
1dfac46664 r18540: show the additional smbd output from each test, rather than only
showing on test failure and showing all the smbd output each time.
2007-10-10 14:18:43 -05:00
Andrew Tridgell
5a8becb1be r18539: 'make distclean' should delete config.cache 2007-10-10 14:18:43 -05:00
Andrew Tridgell
588c91f06b r18538: we need a pipe here, not a logical OR
also fix cn name for this record, and ensure tests/tmp is created
2007-10-10 14:18:43 -05:00
Andrew Tridgell
9afbd60f91 r18537: after testing for poptGetContext, if the test fails, don't try to use
the external popt (this affects hpisgr8)
2007-10-10 14:18:43 -05:00
Andrew Tridgell
fbe13ed83e r18536: fixed the loading of external binary files from ldif into ldb 2007-10-10 14:18:43 -05:00
Andrew Tridgell
823cd3ab35 r18535: move the AC_CANONICAL_HOST and host specific flag tests into
libreplace. This should fix the standalone build of tdb on HPUX, where
we need to blacklist mmap.

Unfortunately this requires that we have a copy of config.guess and
config.sub in each of our project subdirectories. I tried to find a
way to use something like AC_CONFIG_AUX_DIR($libreplacedir) and just
put config.{guess,sub} in the lib/replace/ directory, but I couldn't
figure out how to do that in a way that kept autoconf happy for each
of our separate builds. Any autoconf guru out there see a way to do
this?
2007-10-10 14:18:42 -05:00
Andrew Tridgell
95455b5789 r18528: work around what appears to be a compiler bug in gcc on irix. It
caused the RPC-SECRETS test to crash smbd in an inlined version of
this memcmp() call. This patch should have absolutely no effect at
all, but in fact it prevents the crash.

Disassembling at the point of the crash, it shows that gcc is inlining
the memcmp(). I don't know enough MIPS assembler to actually spot the
bug. In case anyone reading this does know MIPS assembler, here is the
gcc generated code that crashes:

0x105e0218 <gssapi_krb5_verify_header+168>:     lw      $t1,52($sp)
0x105e021c <gssapi_krb5_verify_header+172>:     lw      $t1,0($t1)
0x105e0220 <gssapi_krb5_verify_header+176>:     lhu     $t1,0($t1)
0x105e0224 <gssapi_krb5_verify_header+180>:     lw      $t2,68($sp)
0x105e0228 <gssapi_krb5_verify_header+184>:     lhu     $t2,0($t2)
0x105e022c <gssapi_krb5_verify_header+188>:     subu    $t1,$t1,$t2

it gets a segv at 0x105e0220.

lha, what do you think of this? The change should be innocuous on all
other platforms, apart from making the code harder to read :(
2007-10-10 14:18:42 -05:00
Jelmer Vernooij
0ee42669d3 r18524: Pre-allocate out arguments. 2007-10-10 14:18:42 -05:00
Jelmer Vernooij
f67b4d58ac r18523: Allow [out] on arrays as well as pointers, use in unixinfo. 2007-10-10 14:18:42 -05:00
Jelmer Vernooij
234272e39d r18522: It's probably not a good idea to use rpc_netdfs_init() as initialization
function name for _all_ RPC servers...
2007-10-10 14:18:42 -05:00
Andrew Tridgell
9b9f058edb r18521: implement volkers suggestion for avoiding the type punning warnings 2007-10-10 14:18:41 -05:00
Jelmer Vernooij
7a2afc3e0c r18520: Add note about warnings on [out] arrays. 2007-10-10 14:18:41 -05:00
Andrew Tridgell
64b5ff171d r18518: we replace snprintf() if its not C99, so we should also add the rep_
prototype in that case
2007-10-10 14:18:41 -05:00
Andrew Tridgell
3e1844b2b2 r18517: I find it less confusing if tests are run in the order they are
added.
2007-10-10 14:18:41 -05:00
Andrew Tridgell
46aa8a5e89 r18516: I'm surprised that compilers allowed this at all 2007-10-10 14:18:41 -05:00
Jelmer Vernooij
fc3f41a4ab r18515: Remove calls to "time" for now as some sh implementations don't have it,
causing this test to fail.
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
8e49dc69e7 r18514: fix configure caching of AC_VERIFY_C_PROTOTYPE() macro
metze
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
1f4e602ff2 r18505: add configure checks for telldir() and seekdir()
telldir() is different on older OpenBSD versions
seekdir() is different Tru64

tridge: OpenBSD seems to like this replacement:-)
        while MAC OS 10 gets 134 runtime error:-(
	lets wait what Tru64 will give

metze
2007-10-10 14:18:40 -05:00
Andrew Bartlett
81d9a692c1 r18504: Handle mappings for RENAME and KEEP attributes better. We don't need
to mess with the values in these cases.

Where we do convert the values, try and convert substrings.  This
isn't going to be perfect, but we should try rather than segfault.

This also avoids using the wrong arm of the union for the attribute
name

The change in the entryUUID module is to correct the case of
sAMAccountName, due to the case sensitive ldap.js test.

Andrew Bartlett
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
ace406a36e r18503: - _GNU_SOURCE is defined by libreplace
- move AS_HELP_STRING replacement to libreplace

metze
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
37f55c08c3 r18502: remove unused lines
metze
2007-10-10 14:18:39 -05:00
Stefan Metzmacher
d8fdd05482 r18501: libreplace needs 'long long', bailout if not present
or the size is not 8 bytes or more.

samba4 doesn't need type checks anymore

metze
2007-10-10 14:18:39 -05:00
Stefan Metzmacher
6a6729fb72 r18500: move make related checks into its own file
metze
2007-10-10 14:18:39 -05:00
Stefan Metzmacher
c4da3b4364 r18499: this hopefully lets the code compile on OpenBSD
the prototype was fixed in this revision
http://www.openbsd.org/cgi-bin/cvsweb/src/include/dirent.h.diff?r1=1.15&r2=1.16

so we'll need a configure test to find the prototype of
telldir later

metze
2007-10-10 14:18:39 -05:00
Andrew Bartlett
174014d956 r18498: While passing stack values into torture_tcase_add_test is bad, values
assigned into a static initialiser must be constant.

Wishing sweet dreams on the jet-lagged tridge :-)

Andrew Bartlett
2007-10-10 14:18:39 -05:00
Andrew Tridgell
2744a0b385 r18497: fixed crash bug in irpc test - the torture_tcase_add_test() call
is passed a stack pointer from values[], which is not valid when the
torture suite is run.

Jelmer, need to be careful when converting test code not to use stack
values from the torture_XXX() call in the test suite
2007-10-10 14:18:38 -05:00
Andrew Tridgell
041c2c1202 r18496: yet another dlopen valgrind suppression 2007-10-10 14:18:38 -05:00
Andrew Bartlett
bc58792b71 r18495: More work on the LDAP backend (which now passes a lot of our tests!)
This adds a list of attributes that are in our wildcard seaches, but
the remote server requires to be explicitly listed.  This also cleans
up the handling of wildcards in ldb_map to be more consistant.

Also fix the partitions module to rebase the search, if on the GC
port, we do a subtree search.  (Otherwise backends can rightly
complain that the search is not in their scope).

Andrew Bartlett
2007-10-10 14:18:38 -05:00
Andrew Tridgell
f7eaa03d6f r18494: don't count 'DWARF2 CFI reader' messages as valgrind failures 2007-10-10 14:18:38 -05:00