Andrew Bartlett
485898458a
debug: log early messages to stdout, and keep it open
...
The --log-stdout option was compromised by the log file descriptors being
closed once the file process forked.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-20 09:17:09 +10:00
Volker Lendecke
25df2fe8e2
S3: Fix some nonempty blank lines
2011-07-03 11:31:29 +02:00
Andrew Bartlett
d4ef70a764
param: Finish conversion from lp_wins_support() -> lp_we_are_a_wins_server()
...
Jermey started this in 1997 with 0aa493cc03
(avoiding the duplicate function makes it easier to generate the
struct loadparm_globals).
Andrew Bartlett
2011-07-02 12:31:34 +10:00
Jeremy Allison
1053a24a87
Part of fix for bug 8276 - FD_SET out of bounds access crash.
...
Ensure we never add fd's set to -1 to the pollfd set.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Jun 30 21:15:25 CEST 2011 on sn-devel-104
2011-06-30 21:15:25 +02:00
Stefan Metzmacher
75e9f21108
s3:nmbd_subnetdb: close all sockets attached to a subnet in close_subnet() (bug #8276 )
...
metze
2011-06-30 13:20:05 +02:00
Andrew Bartlett
734e1b6812
s3-param Remove 'announce version' parameter
...
The only users I can find of this on the internet involve confused
users, and our own documentation recommends never setting this. Don't
confuse our users any longer.
Andrew Bartlett
2011-06-23 13:47:27 +02:00
Rusty Russell
058c4f8492
tdb_fetch_compat: use instead of tdb_fetch.
...
This is a noop for tdb1.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20 11:18:35 +02:00
Andrew Bartlett
74eed8f3ed
s3-param Remove special case for global_myname(), rename to lp_netbios_name()
...
There is no reason this can't be a normal constant string in the
loadparm system, now that we have lp_set_cmdline() to handle overrides
correctly.
Andrew Bartlett
2011-06-09 12:40:09 +02:00
Andrew Bartlett
f348d148b4
s3-param Remove special case for global_scope()
...
There is no reason this can't be a normal constant string in the
loadparm system. (Past reasons were that we didn't have lp_set_cmdline())
Andrew Bartlett
2011-06-09 12:40:09 +02:00
Andrew Bartlett
5e26e94092
s3-talloc Change TALLOC_ZERO_ARRAY() to talloc_zero_array()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_ZERO_ARRAY isn't standard talloc.
2011-06-09 12:40:08 +02:00
Andrew Bartlett
ad0a07c531
s3-talloc Change TALLOC_ZERO_P() to talloc_zero()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_ZERO_P isn't standard talloc.
2011-06-09 12:40:08 +02:00
Andrew Bartlett
3d15137653
s3-talloc Change TALLOC_ARRAY() to talloc_array()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_ARRAY isn't standard talloc.
2011-06-09 12:40:08 +02:00
Andrew Bartlett
73b377432c
s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_REALLOC_ARRAY isn't standard talloc.
Andrew Bartlett
2011-06-09 12:40:08 +02:00
Rusty Russell
56e72337b0
lib/util/time.c: timeval_current_ofs_msec
...
Several places want "milliseconds from current time", and several were
simply doing "msec * 1000" which can (and does in one place) result in
a usec value over 1 a million.
Using a helper to do this is safer and more readable.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-01 10:38:47 +02:00
Michael Adam
fdd225c3e4
s3:nmbd: add _NMBD_NMBD_H_ guard to nmbd.h
2011-05-31 18:37:29 +02:00
Michael Adam
75cfafd698
s3:nmbd: add GPL/Copyright header to nmbd.h
2011-05-31 18:37:29 +02:00
Michael Adam
d8f269feef
s3:nmbd/nmbd_proto.h: add GPL/Copyright header
2011-05-31 01:44:27 +02:00
Volker Lendecke
7d47e65e32
s3: Use cli_connect_nb in nmbd sync_child
2011-05-29 14:39:12 +02:00
Volker Lendecke
1173a4f83d
s3: Fix some nonemtpy blank lines
2011-05-28 20:50:09 +02:00
Andrew Bartlett
c615ebed6e
s3-lib Replace StrCaseCmp() with strcasecmp_m()
...
strcasecmp_m() never needs to call to talloc, and via next_codepoint()
still has an ASCII fast-path bypassing iconv() calls.
Andrew Bartlett
2011-05-18 16:12:08 +02:00
Günther Deschner
27022587e3
s3-libsmb: move protos to libsmb/proto.h
...
Guenther
2011-05-06 16:37:18 +02:00
Günther Deschner
d8cfca3a9b
s3: only include tdb headers where needed.
...
Guenther
2011-05-06 10:48:10 +02:00
Jeremy Allison
02af307585
More simple const fixes.
2011-05-05 23:56:07 +02:00
Jeremy Allison
9efea96d16
More const compiler warning fixes.
2011-05-05 11:29:01 -07:00
Jeremy Allison
8380835fc6
Fix warning messages caused by addition of null check in fstrcpy macro.
2011-05-04 12:12:15 -07:00
Jeremy Allison
5fa6f390d1
Remove overmalloc_safe_strcpy - can be simple strlcpy.
2011-05-04 12:12:14 -07:00
Jeremy Allison
0c464df22b
Change safe_strcpy_base to strlcpy_base. Note the size doesn't change here as the original macro auto-added the -1.
2011-05-04 12:12:14 -07:00
Jeremy Allison
017e0c8d95
Fix simple uses of safe_strcpy -> strlcpy. Easy ones where we just remove -1.
2011-05-04 12:12:13 -07:00
Günther Deschner
165521e20d
s3: only include smb profiling where needed.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Apr 14 01:31:39 CEST 2011 on sn-devel-104
2011-04-14 01:31:39 +02:00
Günther Deschner
ab36d597e7
s3-messages: make ndr_messaging.h part of messages.h.
...
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
b2af281e50
s3-messages: only include messages.h where needed.
...
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
2473c2fb1b
s3-libsmb: put namequery headers to nmblib.h
...
We might find a better name for it and merge other namequery related things as
well here...
Guenther
2011-03-30 01:13:09 +02:00
Günther Deschner
0e771263ee
s3-includes: only include system/filesys.h when needed.
...
Guenther
2011-03-30 01:13:07 +02:00
Volker Lendecke
66c968068d
s3: Fix Coverity ID 2331: RESOURCE_LEAK
2011-03-27 11:25:33 +02:00
Andrew Tridgell
7aef9c3fe0
s3-config: say which config file we failed to open
...
saves having to strace it to work that out
2011-03-23 12:19:29 +11:00
Andrew Tridgell
580997ede0
fault: get fault.c ready for use by s4
...
this moves the s3 specific dumpcore code into source3/lib/dumpcore.c,
and uses a function pointer to setup which smb_panic call to use
2011-03-23 11:03:57 +11:00
Andrew Tridgell
c8297073db
s3-fault: removed the cont_fn from fault_setup()
...
cont_fn() was supposed to be a way to continue after a seg fault. It
could never be called however, as smb_panic() from fault_report()
could never return, as dump_core() never returns at the end of
smb_panic()
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Mar 22 05:07:58 CET 2011 on sn-devel-104
2011-03-22 05:07:58 +01:00
Günther Deschner
7a91282c9f
s3-libsmb: only include rap client when needed.
...
Guenther
2011-03-15 21:16:35 +01:00
Günther Deschner
8643683dd8
s3-server_id: only include server_id where needed.
...
Guenther
2011-03-02 12:12:31 +01:00
Volker Lendecke
ada2a5a245
s3: Use poll in nmbd
2011-02-28 16:40:19 +01:00
Volker Lendecke
e9f552925d
s3: Fix a typed-punned warning
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Feb 14 11:46:50 CET 2011 on sn-devel-104
2011-02-14 11:46:50 +01:00
Volker Lendecke
8af7400d55
s3: Fix some nonempty blank lines
2011-02-06 16:44:56 +01:00
Günther Deschner
50be0b2c1e
s3: Remove superfluous ;
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb 2 15:44:21 CET 2011 on sn-devel-104
2011-02-02 15:44:21 +01:00
Stefan Metzmacher
19d3779274
Revert "s3:events: Call all ready fd event handlers on each iteration of the main loop"
...
This reverts commit 455fccf86b
.
I'll add a more generic fix for this problem.
metze
2011-01-31 16:16:09 +01:00
Björn Baumbach
617e342a14
s3-nmbd: Fix bug #7875
...
nmbd --port didn't work
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jan 7 17:44:08 CET 2011 on sn-devel-104
2011-01-07 17:44:08 +01:00
Günther Deschner
3294ccbb6d
netlogon: move netlogon helpers to ../libcli/netlogon.
...
Guenther
2011-01-07 15:02:24 +01:00
Volker Lendecke
2672101cc4
s3: Remove some unused code
2011-01-07 13:28:07 +01:00
Volker Lendecke
dab6a35f4c
s3: Limit the number of unexpected clients to 200
...
DoS protection like the max winbind clients. Settable by
nmbd:unexpected_clients
2011-01-07 13:28:07 +01:00
Volker Lendecke
5297f3fcff
s3: Make nmbd listen on the unexpected socket
2011-01-07 13:28:04 +01:00
Volker Lendecke
4de4703bb9
s3: Fix some nonempty blank lines
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Jan 5 16:03:24 CET 2011 on sn-devel-104
2011-01-05 16:03:24 +01:00