Jeremy Allison
adf4833792
This patch looks bigger than it is. It does 2 things. 1). Renames smbpid -> smblctx in our locking code. 2). Widens smblctx to 64-bits internally. Preparing to use the SMB2 handle as the locking context.
...
Jeremy.
2010-05-07 06:20:50 -07:00
Andrew Tridgell
6fd4861d9d
s4-devel: a very useful script when dealing with library/linking issues
...
I use this all the time, so I thought I'd put it in the tree for
others
2010-05-07 15:14:49 +02:00
Andrew Tridgell
022266566d
build: fixed pc file variable substitution
...
We should not substitute for the first use of each variable
declaration in the pkgconfig file
2010-05-07 15:14:49 +02:00
Björn Jacke
e8c3da1fc0
idl: get the logic of the prevous commit right
2010-05-07 13:45:00 +02:00
Björn Jacke
10e0641e34
idl: fix Unix builds by replacing bashism
...
test -nt is not portable - tridge, please check!
2010-05-07 13:38:00 +02:00
Björn Jacke
5910f4cade
s3:configure: search fdatasync also in librt
...
Sun^W Oracle Solaris has it there ...
2010-05-07 12:53:53 +02:00
Björn Jacke
358a3855c2
s3:configure: use correct SONAMEFLAG on Solaris depending on which linker is being used
2010-05-07 11:58:09 +02:00
Jeremy Allison
4ad1943d29
Make us pass all SMB2 lock tests except MULTIPLE-UNLOCK and CONTEXT. Them next :-).
...
Jeremy.
2010-05-07 01:20:26 -07:00
Jeremy Allison
882fb1828f
Fix crash in cancel-tdis lock test. Correctly shut down connection.
...
Jeremy.
2010-05-07 00:33:59 -07:00
Andrew Tridgell
815fcfba48
build: treat a blank --build or --host as not a cross-compile
...
This matches autoconf behaviour
2010-05-07 09:03:47 +02:00
Jeremy Allison
1c7a60ef41
Fix cancel by close lock test.
...
Jeremy.
2010-05-06 15:39:21 -07:00
Andreas Schneider
82900073fb
talloc: Documented the missing string functions.
2010-05-06 18:14:09 +02:00
Jeremy Allison
516f7c571e
Fix SMB2 lock tests up to cancel-by-close.
...
Jeremy.
2010-05-06 09:07:49 -07:00
Jeremy Allison
a77a8a5e35
Fix more SMB2 locking. We still crash but this won't last :-).
...
Jeremy.
2010-05-06 08:22:13 -07:00
Andrew Tridgell
e0f602f2c9
s4-devel: auto-delete any leftover IPs
...
remove IP from a previous vampire_ad.sh run
2010-05-06 15:25:18 +02:00
Andrew Tridgell
9ba08c22e8
s4-devel: a useful script for giving DRS replication demos
2010-05-06 15:25:18 +02:00
Andrew Tridgell
c61f4dcc0f
build: added a reconfigure target
...
this is meant to be used by the s3 build, to allow jelmers work on
smbtorture4 in s3 to avoid re-running configure unless its needed
2010-05-06 14:56:43 +02:00
Günther Deschner
049416c285
s3-spoolss: make several notify functions static.
...
Guenther
2010-05-06 13:41:51 +02:00
Günther Deschner
d2d7174394
s3-eventlog: move all eventlog headers to lib/eventlog and only include where required.
...
Guenther
2010-05-06 13:41:51 +02:00
Björn Jacke
0dfe1b9b13
s3: fix the merged build - it required $LD
...
Thanks to Jelmer for pointing that out!
2010-05-06 12:30:14 +02:00
Jelmer Vernooij
fc336590dc
Remove the copy of ldb from Samba 3.
...
There were two utility functions that other parts of Samba 3
still relied on; they have been moved to lib/ldb_compat.[ch].
2010-05-06 11:34:30 +02:00
Günther Deschner
24b2dddae4
s3-build: fix the build of vfs_notify_fam.
...
Guenther
2010-05-06 10:28:31 +02:00
Jeremy Allison
d58b795587
Move to MS-FSA algorithm when checking for invalid lock range.
...
Satisfies SMB and SMB2.
Jeremy.
2010-05-05 15:57:57 -07:00
Günther Deschner
c6ebab846d
s3: only include gen_ndr headers where needed.
...
This shrinks include/includes.h.gch by the size of 7 MB and reduces build time
as follows:
ccache build w/o patch
real 4m21.529s
ccache build with patch
real 3m6.402s
pch build w/o patch
real 4m26.318s
pch build with patch
real 3m6.932s
Guenther
2010-05-06 00:22:59 +02:00
Jeremy Allison
d6a6362752
Get closer to passing SMB2 lock test. Still crashes but we get further.
...
More work to follow later.
Jeremy.
2010-05-05 14:54:31 -07:00
Andrew Tridgell
67fb18adb0
s4-ldb: check for ldap_initialize
...
HPUX 11.0 has a ldap library that doesn't have ldap_initialize
2010-05-05 21:37:42 +02:00
Björn Jacke
1969b4acc3
s3:configure: not simply check for "ld" but for the linker used by $CC
...
this hopefully fixes Solaris' gcc build which uses the system ld by default.
All in all we should clean up most of the compiler and linker flags depending
on the actual compilers and linkers we use. Only some tweaks are OS-specific.
A cleanup in this area should be done along with the move to a new build
system (whensoever that will be ...).
2010-05-05 21:38:08 +02:00
Jeremy Allison
d8ba02b73d
Return correct error on read request on directory.
...
Jeremy.
2010-05-05 09:50:48 -07:00
Jeremy Allison
19758b354d
Get in_minimum and EOF errors right.
...
Jeremy.
2010-05-05 09:47:49 -07:00
Jeremy Allison
4a97912baf
Client ignoring max write is a warning, not an error.
...
Jeremy.
2010-05-05 09:42:45 -07:00
Jeremy Allison
44e9a90b51
Start to pass the SMB2 read torture tests.
...
Jeremy.
2010-05-05 09:39:31 -07:00
Günther Deschner
8528e347cb
s3-lanman: use srvsvc for api_RNetShareAdd().
...
Guenther
2010-05-05 18:29:21 +02:00
Günther Deschner
65105aafb4
s3-spoolss: remove unused winreg_enumval_to_blob().
...
Guenther
2010-05-05 18:23:45 +02:00
Andreas Schneider
386c1fffac
s3-spoolss: Create default DsSpooler values.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 18:22:45 +02:00
Andreas Schneider
92df015e30
s3-spoolss: Fixed the DeviceMode handling in winreg.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 18:22:28 +02:00
Andreas Schneider
859a1e04fb
s3-spoolss: Added winreg security descriptor functions.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 18:21:54 +02:00
Andreas Schneider
a76cc0a18c
s3-spoolss: Migrated winreg to spoolss_create_default_secdesc.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 18:21:19 +02:00
Günther Deschner
ed3852c2c2
s3-spoolss: make sure to return success in winreg_get_driver_list() for a
...
non-existing architecture / version combination.
Guenther
2010-05-05 18:17:32 +02:00
Günther Deschner
83e324c417
s3-spoolss: talloc_steal the returned driver_list in winreg_get_driver_list().
...
Otherwise the function would return a pointer to a freed list.
Guenther
2010-05-05 18:17:23 +02:00
Simo Sorce
24225bf032
s3-spoolss: Fixed winreg_printer_query_XXX.
...
A cast to an incorrectly sized pointer was breaking
on 64bit architectures where size_t is 64bit.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 18:17:13 +02:00
Andreas Schneider
740418a150
s3-spoolss: Added a winreg_printer_query_binary function.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 18:16:38 +02:00
Andreas Schneider
66f7699511
s3-spoolss: Added a generic spoolss_create_default_secdesc function.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 18:16:23 +02:00
Andreas Schneider
b2ea8fbcce
s3-spoolss: Added a function to create a default spoolss_DeviceMode.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 18:08:56 +02:00
Volker Lendecke
5a56bc948e
s3: Fix bug 5972 -- remove -L testparm parameter
...
Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> to point out that this does
not work and to agree it's not worth fixing :-)
2010-05-05 18:07:45 +02:00
Andreas Schneider
3f0562f4b4
s3-spoolss: Fixed memory error in winreg_get_driver.
...
The strings in the structure need to be initialized with an empty
string.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 17:33:06 +02:00
Andreas Schneider
c95a79aae9
s3-spoolss: Added a sharename arg to winreg_update_printer.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 17:32:59 +02:00
Andreas Schneider
053ed7d554
s3-spoolss: Added missing servername option to winreg_{create,get}_printer.
...
This is needed to be able to pass the correct servername from
Printer_entry.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 17:32:51 +02:00
Andreas Schneider
a5fb4117e1
s3-spoolss: Added missing Printer Driver in winreg_{update,get}_printer.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-05 17:32:33 +02:00
Günther Deschner
6659a0fe92
s3-net: fix crash in rap_share_add().
...
Guenther
2010-05-05 17:21:06 +02:00
Günther Deschner
d3bd9de087
s4-smbtorture: remove unused variable from smbcli_rap_netprintdestgetinfo().
...
Guenther
2010-05-05 17:21:05 +02:00