| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
of the various flags explicit.
|
|
|
|
|
|
|
| |
to all callers of smb_setlen (via set_message()
calls). This will allow the server to reflect back
the correct encryption context.
Jeremy.
|
|
|
|
| |
Jeremy.
|
|
|
|
|
| |
redundent. Remove it.
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
suggested. I now use :
BOOL is_offset_safe(const char *buf_base, size_t buf_len, char *ptr, size_t off)
char *get_safe_ptr(const char *buf_base, size_t buf_len, char *ptr, size_t off)
char *get_safe_str_ptr(const char *buf_base, size_t buf_len, char *ptr, size_t off)
int get_safe_SVAL(const char *buf_base, size_t buf_len, char *ptr, size_t off, int failval)
int get_safe_IVAL(const char *buf_base, size_t buf_len, char *ptr, size_t off, int failval)
Volker, please criticize and comment. Thanks,
Jeremy.
|
| |
|
|
|
|
|
| |
but I've no option.
Jeremy.
|
|
|
|
|
|
| |
and fix all compiler warnings in the users
metze
|
|
|
|
|
|
|
|
| |
which matches what samba4 has.
also fix all the callers to prevent compiler warnings
metze
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
void message_register(int msg_type,
void (*fn)(int msg_type, struct process_id pid,
- void *buf, size_t len))
+ void *buf, size_t len,
+ void *private_data),
+ void *private_data)
{
struct dispatch_fns *dfn;
So this adds a (so far unused) private pointer that is passed from
message_register to the message handler. A prerequisite to implement a tiny
samba4-API compatible wrapper around our messaging system. That itself is
necessary for the Samba4 notify system.
Yes, I know, I could import the whole Samba4 messaging system, but I want to
do it step by step and I think getting notify in is more important in this
step.
Volker
|
|
|
|
| |
in core dump path.
|
| |
|
|
|
|
|
|
|
| |
and DLIST_DEMOTE() now take the type of the tmp pointer
not the tmp pointer itself anymore.
metze
|
|
|
|
|
| |
an answer record. Found by the Stanford checker.
Jeremy.
|
|
|
|
| |
Volker
|
|
|
|
|
| |
problems Kukks reported.
Jeremy.
|
| |
|
|
|
|
| |
Volker
|
|
|
|
|
|
|
| |
to do the upper layer directories but this is what
everyone is waiting for....
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
| |
closer at the wins server code. Firstly, it needs
to do the searches on the SELF_NAMES correctly,
secondly it needs to flush the in-memory cache
out before returning the 1b names - else it might
get duplicates returned if many 1b queries are
done in quick succession. Jerry, I hate to say
this but you might want to consider this for 3.0.23....
Jeremy.
|
|
|
|
|
| |
server code. Jerry please merge for 3.0.23.
Jeremy.
|
|
|
|
| |
Jeremy.
|
|
|
|
| |
Jeremy.
|
|
|
|
| |
Jeremy.
|
|
|
|
| |
Jeremy.
|
|
|
|
|
| |
can return NULL. Ensure we check all returns correctly.
Jeremy.
|
|
|
|
|
| |
return NULL. Ensure we don't deref.
Jeremy.
|
|
|
|
|
| |
and can happen though misconfiguration.
Jeremy.
|
|
|
|
|
|
| |
with select returning true but no data being available.
Fix for bug #3779.
Jeremy.
|
|
|
|
| |
Volker
|
|
|
|
|
| |
globals. This catches mismatched start/end calls and removes
the need for special nested profiling calls.
|
|
|
|
|
| |
No need to null terminate early, pull_ascii_fstring will do this.
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
is produced when a process exits abnormally.
First, we coalesce the core dumping code so that we greatly improve our
odds of being able to produce a core file, even in the case of a memory
fault. I've removed duplicates of dump_core() and split it in two to
reduce the amount of work needed to actually do the dump.
Second, we refactor the exit_server code path to always log an explanation
and a stack trace. My goal is to always produce enough log information
for us to be able to explain any server exit, though there is a risk
that this could produce too much log information on a flaky network.
Finally, smbcontrol has gained a smbd fault injection operation to test
the changes above. This is only enabled for developer builds.
|
|
|
|
|
|
|
|
|
|
|
| |
to make the following possible:
timelimit 20000 bin/nmbd -F -S --no-process-group
timelimit 20000 bin/smbd -F -S --no-process-group
this is needed to 'make test' working without losing child processes
metze
|
|
|
|
|
| |
mean the ttl instead.
Jeremy.
|
|
|
|
|
| |
if rrec can be null make sure we *never* deref it.
Jeremy.
|
|
|
|
| |
Jeremy.
|
|
|
|
| |
Jeremy.
|
|
|
|
|
| |
exit path.
Jeremy.
|
|
|
|
| |
Jeremy.
|
|
|
|
| |
Jeremy.
|
|
|
|
|
|
| |
part of the changes I made but something that's been there
a while.... Coverity bugid #41.
Jeremy.
|
|
|
|
| |
macro which sets the freed pointer to NULL.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
lp_load() could not be called multiple times to modify parameter settings based
on reading from multiple configuration settings. Each time, it initialized all
of the settings back to their defaults before reading the specified
configuration file.
This patch adds a parameter to lp_load() specifying whether the settings should
be initialized. It does, however, still force the settings to be initialized
the first time, even if the request was to not initialize them. (Not doing so
could wreak havoc due to uninitialized values.)
|
| |
|
|
|
|
| |
(-H) in nmbd. Patch from Andrew Esh <Andrew_Esh@adaptec.com>
|
| |
|
|
|
|
| |
Jeremy.
|
|
|
|
| |
Jeremy.
|