1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

50522 Commits

Author SHA1 Message Date
Jelmer Vernooij
e548660c87 Fix ldap.py test on systems that *can* find the record (the search fails here locally). 2009-01-08 12:51:19 +01:00
Jelmer Vernooij
078879735b Print the failed value in the time tests. 2009-01-08 12:45:57 +01:00
Jelmer Vernooij
3318204d29 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-01-08 12:27:52 +01:00
Stefan Metzmacher
3dde0cbb76 s3:smbd: move all globals and static variables in globals.[ch]
The goal is to move all this variables into a big context structure.

metze
2009-01-08 12:22:21 +01:00
Stefan Metzmacher
defb574c25 s3:smbd: variables in a main() don't need to be static
metze
2009-01-08 12:22:21 +01:00
Stefan Metzmacher
7a5d07a1c1 s3:smbd: open_sockets_smbd() don't need a static variable arrount atexit()
open_sockets_smbd() is only called once.

metze
2009-01-08 12:22:21 +01:00
Stefan Metzmacher
1bd317d3e3 s3:smbd: keep dmapi globals in one context struct
metze
2009-01-08 12:22:20 +01:00
Stefan Metzmacher
256101b022 s3:smbd: remove stupid static variables for the nfs quota code
metze
2009-01-08 12:22:20 +01:00
Stefan Metzmacher
0a0cd1396a s3:smbd: remove pointless static variable in uid.c
We always free the value at the end of the function,
so we don't need a static variable to hold just NULL
for the time the function isn't executed.

metze
2009-01-08 12:22:19 +01:00
Stefan Metzmacher
9ae0c5e5a7 s3:smbd: make static const in mangle_hash2.c really static const
const char *foo, means a non-const pointer to
a const char.

const char * const foo, means a const pointer to
a const char.

char * const foo, would mean a const pointer to
a non-const char.

metze
2009-01-08 12:22:19 +01:00
Stefan Metzmacher
c19ed7669c s3:smbd: make const globals in mangle_hash2.c really static const
const char *foo, means a non-const pointer to
a const char.

const char * const foo, means a const pointer to
a const char.

char * const foo, would mean a const pointer to
a non-const char.

metze
2009-01-08 12:22:19 +01:00
Stefan Metzmacher
0713f98124 s3:smbd: make globals in utmp.c static const
const char *foo, means a non-const pointer to
a const char.

const char * const foo, means a const pointer to
a const char.

char * const foo, would mean a const pointer to
a non-const char.

metze
2009-01-08 12:22:18 +01:00
Stefan Metzmacher
d9e81664e5 s3:smbd: it's pointless to have a global magic_char
We call magic_char = lp_magicchar(p) each time it's used.

metze
2009-01-08 12:22:18 +01:00
Stefan Metzmacher
2f9f8fe81e s3:smbd: remove pointless static variables in chgpasswd.c
metze
2009-01-08 12:22:18 +01:00
Stefan Metzmacher
33dd8e850b s3:smbd: make fake_files[] static const
metze
2009-01-08 12:22:17 +01:00
Stefan Metzmacher
7f2cf6b166 s3:smbd: make mangle_fns const
metze
2009-01-08 12:22:17 +01:00
Jelmer Vernooij
ba5d6e6d70 Avoid using a utility header for Python replacements included in Samba,
since this will not be shipped with talloc/tdb/tevent/etc.
2009-01-08 12:20:20 +01:00
Günther Deschner
07e1e30b96 s3-svcctl: remove old hand marshalling of svcctl_QueryServiceConfig2W.
Guenther
2009-01-08 11:19:34 +01:00
Günther Deschner
3079e14f94 s3-svcctl: use pidl for _svcctl_QueryServiceConfig2W.
Guenther
2009-01-08 11:19:33 +01:00
Günther Deschner
5581637d22 s3-svcctl: fix return code for _svcctl_QueryServiceStatusEx.
Guenther
2009-01-08 11:19:33 +01:00
Günther Deschner
385316a09a s3-svcctl: remove old hand marshalling of svcctl_QueryServiceStatusEx.
Guenther
2009-01-08 11:19:33 +01:00
Günther Deschner
b42cb4944a s3-svcctl: use pidl for _svcctl_QueryServiceStatusEx.
Guenther
2009-01-08 11:19:32 +01:00
Günther Deschner
661eeb34b5 s4-smbtorture: use names for info level in test_QueryServiceStatusEx.
Guenther
2009-01-08 11:19:32 +01:00
Günther Deschner
4df1a491c5 s4-smbtorture: add my copyright to svcctl test.
Guenther
2009-01-08 11:19:31 +01:00
Günther Deschner
6eb507e30d s3-svcctl: use pidl's ndr opcodes for NDR_SVCCTL_QUERYSERVICECONFIGW.
Guenther
2009-01-08 11:19:31 +01:00
Günther Deschner
2a4f1ae1fb s3: re-run make samba3-idl.
Guenther
2009-01-08 11:19:15 +01:00
Günther Deschner
979c82ab43 svcctl: add svcctl_ServiceState.
Guenther
2009-01-08 11:19:13 +01:00
Günther Deschner
ea7fa77bb2 svcctl: add SERVICE_FAILURE_ACTIONS and SERVICE_DESCRIPTION to IDL.
Guenther
2009-01-08 11:19:13 +01:00
Günther Deschner
60c10a153a svcctl: add SERVICE_STATUS_PROCESS to idl.
Guenther
2009-01-08 11:19:12 +01:00
Günther Deschner
55da3807d7 svcctl: add svcctl_ErrorControl and svcctl_Type (based on samba3) to IDL.
Guenther
2009-01-08 11:19:12 +01:00
Günther Deschner
176bbcf90c svcctl: add svcctl_ConfigLevel from samba 3.
Guenther
2009-01-08 11:18:57 +01:00
Günther Deschner
550c64bef9 svcctl: move SVC_STATUS_ to idl.
Guenther
2009-01-08 10:58:10 +01:00
Tim Prouty
61a23c5eea s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4 2009-01-07 15:03:16 -08:00
Tim Prouty
bed05fbf2e s3 merged build: Fix include error
On some builds compiling source4/ntvfs/common/brlock_tdb.c was failing
because tdb_wrap.h couldn't find tdb.h.  Adding the path should fix
the problem.
2009-01-07 15:03:16 -08:00
Jeremy Allison
9b44fb1c93 Fix bug #6016 - Alternate Data Streams / Extended Attributes seem to conflict.
Jeremy.
2009-01-07 14:57:20 -08:00
Jelmer Vernooij
c81de641cd Display lsa string contents. 2009-01-07 22:40:49 +01:00
Jelmer Vernooij
f4735b7180 Set proper python exception when running out of memory. 2009-01-07 22:40:13 +01:00
Jelmer Vernooij
66fa21ef73 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-01-07 21:45:49 +01:00
boyang
45c67ff244 refresh sequence number as soon as possible when domain->sequence_number == -1 or domain->last_status is not ok. 2009-01-07 11:02:04 -08:00
Volker Lendecke
00a401aa3e Remove unused struct CLI_POLICY_HND 2009-01-07 17:17:03 +01:00
Volker Lendecke
e1459a2379 Several fixes to our use of splice
The splice manpage explicitly requires loff_t as offset. Copy "offset" there.
Probably not required, but I wanted to make sure it's as required.

Splice blocks with large buffers. For me it worked with 16k and blocked with
32k and beyond. It would be nice to see a clarification in the manpage of
splice for this behaviour.

Splice if used with an offset increments the offset. From the manpage this was
at least not entirely obvious :-)

I haven't yet activated this (try_splice_call ist still false by default), it
needs more testing.

Volker
2009-01-07 12:04:44 +01:00
Jelmer Vernooij
ea1ff069a5 Fix ldap.py test. 2009-01-07 11:06:00 +01:00
Andrew Bartlett
59f8c1d98a Use new error constant (missing from 6efb7ff9) 2009-01-07 17:09:26 +11:00
Andrew Bartlett
59d5a963d1 Raise a python exception when the ldb search fails
This fixes a regression found by ldap.py in the new hand-written
python bindings.

Andrew Bartlett
2009-01-07 17:09:26 +11:00
Andrew Tridgell
c81863e868 added support for stream renames in Samba4
This allows the RAW-STREAMS test to work again. We still have some
limitations though:

  - renames of a stream to the default stream doesn't work
  - delete on close handling between streams and the main file 
    is still broken
2009-01-07 16:46:34 +11:00
Stefan Metzmacher
07e01f8405 s4:smbclient: correct initialize smbclient_context
Found by valgrind.

metze
2009-01-07 06:36:23 +01:00
Stefan Metzmacher
4e7f0a8851 tevent: don't try to dereference fde->event_ctx when the event context doesn't exists anymore
metze
2009-01-07 06:36:23 +01:00
Jeremy Allison
d1f7a37174 Make winbindd_cm.c use winbindd_reinit_after_fork().
Jeremy.
2009-01-06 17:34:06 -08:00
Jeremy Allison
e13983870f Fix bug #6017, - magic script does not work. based on a patch from monyo@samba.gr.jp.
Jeremy.
2009-01-06 16:05:28 -08:00
Jeremy Allison
7b77ac5365 Add winbindd_reinit_after_fork(), cleaning out all possible events
in a forked child.
Jeremy.
2009-01-06 15:14:52 -08:00