1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

10422 Commits

Author SHA1 Message Date
Rafal Szczesniak
d630105b56 r18614: a bit of work done while on the plane.
a new function converting NTTIME to struct timeval

rafal
(This used to be commit e9ebbb8661ac6efc5bf07798a64cdb9f7c7eea50)
2007-10-10 14:18:56 -05:00
Günther Deschner
57cd2235fa r18611: Do not return NT_STATUS_OK when libnet_Add|DelShare has failed.
Guenther
(This used to be commit 1709ad741b43a19eaeef9e0a64e70a52132c088b)
2007-10-10 14:18:56 -05:00
Günther Deschner
28c9c212bc r18610: Fix typo.
Guenther
(This used to be commit 759914a07e1f85617c82ee5f4a6f3193fb9cc111)
2007-10-10 14:18:56 -05:00
Günther Deschner
e7ede84c33 r18609: error_string should not contain newlines.
Guenther
(This used to be commit 556666756418ad50c533199c736fe3696a7e20cb)
2007-10-10 14:18:56 -05:00
Stefan Metzmacher
6e47a2bb75 r18607: remove unused structure element
rafal: is there a reason why we don't use libnet_AddShare() in the torture test?

metze
(This used to be commit 070a98379a78eb46ff808521e375c9874c1c0d1c)
2007-10-10 14:18:55 -05:00
Andrew Tridgell
69eed6a4ba r18604: fixed shell syntax
(This used to be commit 61104953c82442b9ef0817c077f4b91741fa3aa8)
2007-10-10 14:18:55 -05:00
Andrew Tridgell
1188fa1a18 r18602: updated web page for new ldb build method
(This used to be commit 36c35262f23fec20feff99a87b185b74c1f176c2)
2007-10-10 14:18:55 -05:00
Andrew Tridgell
f96b8c5391 r18601: updated web page for new talloc build method
(This used to be commit fbd8028080108cd920ee0a65bdb10de2eb419cde)
2007-10-10 14:18:55 -05:00
Andrew Tridgell
e84ee4a6fd r18600: - fix shell syntax in tests for libraries
- add library test for libpopt
(This used to be commit 13878b7e7ec65b21df954f83afc0e9ceb73e44a0)
2007-10-10 14:18:55 -05:00
Andrew Tridgell
e7b9aeb883 r18599: the netr_CryptPassword structure needs to use a uint8, as the data is
passed to acrfour, and that assumes a byte buffer. This caused us to
fail big endian boxes (or more specifically, to be incompatible with
little endian boxes)
(This used to be commit a44f2eda1eeb134292111dd857f0f65e4bf96399)
2007-10-10 14:18:54 -05:00
Andrew Tridgell
ee528dc0f2 r18596: removed superfluous semicolon
(This used to be commit 4f3628dea69efce430bf96a42435025806853d90)
2007-10-10 14:18:54 -05:00
Andrew Tridgell
db6dcaae16 r18595: try an experiment of adding a RPC test into the windows testing
framework

Brad, I know this is a bit hackish. We really need a "testit" like
function like in test_functions.sh
(This used to be commit 7120fbffa5560dcaf3d796cb72fa3a6b78a991d6)
2007-10-10 14:18:54 -05:00
Andrew Tridgell
550834c9df r18594: fail the configure step if the required library is not found for tdb,
talloc or libreplace
(This used to be commit 9f45f970f71ee5585bf3c924b9c77188405fa246)
2007-10-10 14:18:54 -05:00
Stefan Metzmacher
4a854fe809 r18593: try to get the same socket_wrapper file building in samba3 and samba4
this is preparation of adding libreplace to samba3 later.

metze
(This used to be commit 26228e4b2e8debd84caebe84bb34bfbbf2ad405c)
2007-10-10 14:18:54 -05:00
Stefan Metzmacher
5d6a38004a r18592: we don't need this twice
metze
(This used to be commit e9fe725cf4021943e939f493b967e0ef5a438622)
2007-10-10 14:18:53 -05:00
Simo Sorce
9dd6cac44a r18591: Better defaults for share creation
Fix logic error in paged_results
(This used to be commit 34ce1f8e1bab2debb508aa8bf478231389a77d42)
2007-10-10 14:18:53 -05:00
Simo Sorce
c4d45aac9d r18590: Some more work on the srvsvc pipe
(This used to be commit 2c035787d47c6055c4081021f30d08929f178ca3)
2007-10-10 14:18:53 -05:00
Andrew Tridgell
3c76ac114d r18589: make inclusion of net/if.h conditional. It breaks HPUX with gcc.
(This used to be commit ac71f40f8ff13c422e528dd5013842aa5a5004e7)
2007-10-10 14:18:53 -05:00
Andrew Tridgell
401f107e0c r18588: save one more character in the socket wrapper path - seems it still
was occasionally too long for IRIX 6.4
(This used to be commit f6b65fd631ede9b53c3a8c7a300b3b6bad9f6c52)
2007-10-10 14:18:53 -05:00
Andrew Tridgell
e13715774c r18587: fixed a potential memory leak in libnet
(This used to be commit 935f6f34cfbec0cba6df246b7ef9fdfd604aad38)
2007-10-10 14:18:52 -05:00
Andrew Tridgell
3d6cdc9e97 r18586: fixed a potential fd and memory leak in the socket_wrapper code
(This used to be commit 6d53f2f5bc3a008f957be9e32df6830e1e29e8ed)
2007-10-10 14:18:52 -05:00
Andrew Tridgell
9bda2c3ff2 r18585: 50 open searches is still too many for some of the build farm hosts,
which have a ulimit -n of 100. Drop the number of searches to 20.

That should limit the maximum total fd count to about 76, most of
which is all the listening sockets on the various interfaces
(This used to be commit fb5b8c4f8c1ed69e3a813befeeb2a9627e84c454)
2007-10-10 14:18:52 -05:00
Andrew Tridgell
655b710204 r18584: found one of the fd leaks. The registry backend was using a
talloc(NULL, xxx) to allocate the registry context. That had two
consequences

1) it was a massive memory leak, as all winreg operations leaked their
   entire context (including an open ldb database) every time

2) event_context_find() never found the exsting event context, so we
   used a new event context each time, which called epoll_create()
   each time, which caused a fd to be allocated
(This used to be commit 1c0a3de39828b43149d8981fc7f10e7c8b59a392)
2007-10-10 14:18:52 -05:00
Andrew Tridgell
d01bbe6842 r18583: a nasty hack to allow me to monitor the number of open file
descriptors in smbd on all build farm machines. I suspect we have a fd
leak somewhere, but its hard to track down.

I know part of the problem is the number of (fake) network interfaces
we define in the build farm tests, with each of them listening on a
whole bunch of different protocol ports. That chews up around 48 file
descriptors just to startup. I don't think thats the real problem
though, and I suspect something else is leaking file descriptors on
some hosts.
(This used to be commit 83bf458ec98d9f2a21b3748802f41abcbcc1e0b2)
2007-10-10 14:18:51 -05:00
Andrew Tridgell
481ebe7fd6 r18582: disable synchronous ldb in the build farm. Some hosts have very slow
filesystems and the tests are taking more than 1.5 hours. We will
still be testing the sync code paths, as the ldb tests still run
synchronous, but doing all of our other tests synchronously just costs
too much time.
(This used to be commit ce2baf7385e019383ffb292bd30e77c31eecbbef)
2007-10-10 14:18:51 -05:00
Andrew Tridgell
c5e67b8555 r18581: also check for SEC_STD_DELETE, and split out the check into a separate
static function
(This used to be commit 024ca6a91cdf2c0f8999c220b4459a72c45bfd32)
2007-10-10 14:18:51 -05:00
Andrew Tridgell
9c53e14602 r18580: map the PVFS_FLAG_READONLY bit in the posix backend onto
NT_STATUS_ACCESS_DENIED in the access mask checks
(This used to be commit ceffc34f3e9f47a8a44dad52054688f9855eeb37)
2007-10-10 14:18:51 -05:00
Andrew Tridgell
7c017f9015 r18579: fixed boolean parameters on big endian hosts which have
sizeof(BOOL) != sizeof(int)

this broke with the conversion to a real BOOL type
(This used to be commit 75dab73ac603968ce49c605e07d43051dbfa7398)
2007-10-10 14:18:50 -05:00
Andrew Tridgell
61939ce118 r18578: steve, I think you may have forgotten to commit test_cifsposix.sh ?
(This used to be commit fea75d2c9732f91cb79e178ef6c57c3945e4f52e)
2007-10-10 14:18:50 -05:00
Andrew Tridgell
768af9b576 r18577: reduce the number of tests run in 'make quicktest' again, so it
completes in a minute on my laptop (the benchmark I usually use).

Simo, I removed th ldb tests, as ldb is pretty well tested by lots of
the other tests, and its a pretty slow test. We could instead add a
"ldb-testquick.sh" which does only minimal testing. The full tests
will of course be run with 'make test' and in the build farm.
(This used to be commit 3cee6a7863bba61c92f94087df5c6442f02a2da7)
2007-10-10 14:18:50 -05:00
Andrew Tridgell
158764412e r18576: unfortunately our current build farm results are a bit too good!
when I changed the test output to be easier to read, I also broke it
so that it always gives a zero exit status. Fix now, and unfortunately
I expect to see some more red in the farm as a result :(
(This used to be commit c2fc3471023b613571089cb018638a40091d08ab)
2007-10-10 14:18:49 -05:00
Andrew Tridgell
ba4115ece7 r18575: - use the right variable to teststatus
- don't display the "(NN tests failed so far)" message unless a test
  has failed
(This used to be commit da37e963cef065bb1c50543596e352c78e712ddc)
2007-10-10 14:18:49 -05:00
Andrew Tridgell
818b01f177 r18574: re-enable the echo pipe in smbscript. I suspect disabling this was an
accidental part of commit in the recent echo.idl changes (in r18565)
(This used to be commit 5e143267d7ae18536f1a1be8966dc5e783ea867e)
2007-10-10 14:18:49 -05:00
Andrew Tridgell
d6c128fb4c r18571: try to make it a lot more obvious when 'make test' or 'make quicktest'
has failed. The output was too subtle for people who aren't used to
it.
(This used to be commit a57decb96aee05d3238b64d50a136c8b8001f811)
2007-10-10 14:18:48 -05:00
Steve French
1ce5df6c72 r18570: Fix up function names in cifs unix/posix extensions backend. Enable tiny quick test for torture for them
(This used to be commit 64062d16a2cc215af320eb30827887eb2531e3b0)
2007-10-10 14:18:48 -05:00
Andrew Tridgell
dc70a6b4e7 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 :-)
(This used to be commit 262bee07dcb140b413d5ae5a8a754b3e57235323)
2007-10-10 14:18:48 -05:00
Andrew Tridgell
ee1d645881 r18568: this warning is not needed now that it is the job of the unixuid ntvfs
module to handle euid
(This used to be commit 6784058923ef532da882830296f9bb5f58cddb43)
2007-10-10 14:18:48 -05:00
Andrew Tridgell
48f3449969 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.
(This used to be commit 7005806aa6842ffc3d5ed98682f2aefc59759580)
2007-10-10 14:18:47 -05:00
Andrew Tridgell
6adb5717f5 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 :-)
(This used to be commit 555aed43ba3c08360ca7fa921622b80732a7f657)
2007-10-10 14:18:47 -05:00
Jelmer Vernooij
d9b4bdd5bb r18565: Fix echo.idl to be Samba3-, MIDL and midlc compatible
(This used to be commit ab0a798c57564901f0adcd8aedc1ef0928e79edd)
2007-10-10 14:18:47 -05:00
Steve French
db0fdcf6ce r18564: update for cifs unix/posix extensions stub version to build and beginnings of smbtorture test for it
(This used to be commit 57f56957176ca04f3abb579b557aade71f8d361d)
2007-10-10 14:18:47 -05:00
Andrew Tridgell
6e3b94d3bc 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
(This used to be commit bde18f3d5ce837f600bae8d63f31d92a579fe1f2)
2007-10-10 14:18:46 -05:00
Gerald Carter
dce0c9e4fd r18561: Fix [out] pointers in winreg IDL
(This used to be commit 694677dafefdd94fa0a9bed93efab70c528dcb26)
2007-10-10 14:18:46 -05:00
Jelmer Vernooij
291c5ed53c r18559: [string] always applies to the last pointer
(This used to be commit 86b4624226d6e72645221cadb8669b0f1aba0903)
2007-10-10 14:18:46 -05:00
Simo Sorce
fa257e78b5 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.
(This used to be commit 4daf5f7764ce69c14066f7320961c90141f0863a)
2007-10-10 14:18:46 -05:00
Stefan Metzmacher
0305907e42 r18555: use C:\ as default not C:
metze
(This used to be commit d9137edbdb61f2847453357b94050e5afc2fe68b)
2007-10-10 14:18:45 -05:00
Jelmer Vernooij
3e7cff6c00 r18554: Fix warnings about [out] arguments.
(This used to be commit caac6cf817b09c864554e992f89437f6205b948b)
2007-10-10 14:18:45 -05:00
Stefan Metzmacher
45e566b7cc 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
(This used to be commit 04a0a5144a249e12a9dcb327c5b6055e6a6135db)
2007-10-10 14:18:45 -05:00
Simo Sorce
ab188e02af r18550: Return a path not just a disk drive
(This used to be commit 60076fa87d6c68295ebedc28cdbbd4556cfd0ae7)
2007-10-10 14:18:45 -05:00
Stefan Metzmacher
a8fd66f91f r18549: move gcc version check to libreplace and reorder the tests a bit
for nicer output

metze
(This used to be commit 888a769af557d050d99df703ce5f651688c837c5)
2007-10-10 14:18:45 -05:00