1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-17 15:17:09 +03:00

567 Commits

Author SHA1 Message Date
Volker Lendecke
b4b3b6b1c6 If no node number is given, default to the current node in smbcontrol 2008-05-19 14:56:15 +02:00
Günther Deschner
dbf96120d8 util: add strip_hostname() to strip of leading '\\'.
Guenther
2008-05-09 14:59:19 +02:00
Volker Lendecke
e7ce4bce5c Make the namelist arg to set_namearray const 2008-05-05 18:28:58 +02:00
Günther Deschner
d077ef64cd Fix client authentication with -P switch in client tools (Bug 5435).
Guenther
2008-05-05 16:59:53 +02:00
Volker Lendecke
4f4781c6d1 Fix CLEAR_IF_FIRST handling of messages.tdb
We now open messages.tdb even before we do the become_daemon. become_daemon()
involves a fork and an immediate exit of the parent, thus the
parent_is_longlived argument must be set to false in this case. The parent is
not really long lived :-)
2008-04-23 22:18:26 +02:00
Stefan Metzmacher
5f6c3a4f6d util: add reinit_after_fork() function
metze
2008-04-18 14:43:07 +02:00
Günther Deschner
aae4d91e72 Move is_valid_policy_hnd() out of net.
Guenther
2008-04-08 19:54:57 +02:00
Gerald W. Carter
0c94918fb5 Patch from Nicholas Brealey <nick@brealey.org> to distinguish between WinXP and WinXP64.
Defines a new value for the %a variable when detecting a Windows XP 64-bit client.
2008-03-31 14:34:43 -05:00
Tim Potter
ec367f307d Adding missing calls to va_end().
Just a small commit to get a handle on this git thingy.  This patch
fixes some missing calls to va_end() to match various calls to va_start()
and VA_COPY().

Tim.
2008-01-27 09:33:42 +01:00
Michael Adam
cbc7d921fa Fix tab_depth: it should not create an extra debug header.
In pstring removal 4ae4b23586, the behaviour of tab_depth was
changed to create an extra debug header (by using the DEBUGLVL
macro).

This extracts the debug level check from DEBUGLVL into
a macro CHECK_DEBUGLVL without the debug header creation
and uses this instead of DEBUGLVL in tab_depth.

Michael
2008-01-23 08:16:37 +01:00
Volker Lendecke
d813bd9e02 Add "split_ntfs_stream_name()" together with a torture test 2008-01-19 23:10:09 +01:00
Alexander Bokovoy
0c8e23afbb Merge CTDB-related fixes from samba-ctdb 3.0 branch (http://samba.org/~tridge/3_0-ctdb)
Signed-off-by: Alexander Bokovoy <ab@samba.org>
2008-01-16 12:09:48 +03:00
Michael Adam
395f29d8b7 Move transfer_file and transfer_file_internal to a module of their own.
Also, don't auto-generate prototypes of the (two) exported functions
but make a start in having handwritten prototypes in dedicated header
files (not in includes.h ... :-)

Michael
2008-01-10 14:31:25 +01:00
Michael Adam
4ed238b1e4 Reformat some code I just touched.
Michael
2008-01-10 14:28:12 +01:00
Michael Adam
7b0af7cdc9 Fix a really silly typo.
Michael
2008-01-10 14:18:46 +01:00
Michael Adam
b2e7cdc6e8 Correctly abstract the transfer_file mechanism with callbacks and void ptrs.
This removes the in_fsp and out_fsp global variables hack from smbd/vfs.c.

Michael
2008-01-10 13:30:46 +01:00
Günther Deschner
f3ebb4f96b Add free_local_machine_name().
Guenther
2008-01-07 14:53:07 +01:00
Jeremy Allison
45ae90b77e Fix missing return - should be void.
Jeremy.
2008-01-05 01:16:09 -08:00
Jeremy Allison
757653966f Add general '-e' option to enable smb encryption
on tools.
Jeremy.
2008-01-05 00:23:35 -08:00
Jeremy Allison
d78045601a Add SMB encryption. Still fixing client decrypt but
negotiation works.
Jeremy.
2007-12-26 17:12:36 -08:00
Jeremy Allison
4ae4b23586 Use the %*s feature of snprintf to remove anothe static fstring.
Jeremy.
2007-12-17 16:20:44 -08:00
Günther Deschner
bd5308e5f6 Add split_domain_user() (not to mix with winbind variants).
Guenther
2007-12-12 00:58:58 +01:00
Jeremy Allison
52dc5eaef2 Remove the char[1024] strings from dynconfig. Replace
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
2007-12-10 11:30:37 -08:00
Jeremy Allison
46b67fd82c Remove pstrings completely except for smbctool (what does this do ?).
Don't build this for now.
Jeremy.
2007-12-07 12:02:44 -08:00
Jeremy Allison
187d8a94ea *Really* fix the no password -N opt :-).
Jeremy.
2007-12-06 19:15:56 -08:00
Jeremy Allison
6ac5d81655 Get closer to building with smbmount. Move parameter line changes
into lib/util.c
Jeremy.
2007-12-06 18:49:39 -08:00
Jeremy Allison
c87f3eba9a Remove pstrings from client/client.c by doing a large rewrite.
Mostly compiles....
Jeremy.
2007-12-06 17:16:33 -08:00
Gerald (Jerry) Carter
487ab6e75e Compile fix to the automount support. Patch from GlaDiaC. 2007-12-05 11:52:35 -06:00
Jeremy Allison
6863fe51b5 Remove pstring from automount lookups. Remove premature optimization.
Jeremy.
2007-12-04 17:48:38 -08:00
Günther Deschner
bf4881d777 Fix build warning.
Guenther
2007-11-30 01:45:06 +01:00
Jeremy Allison
1ea3ac8014 More pstring removal. This one was tricky. I had to add
one horror (pstring_clean_name()) which will have to
remain until I've removed all pstrings from the client code.
Jeremy.
2007-11-15 14:19:52 -08:00
Jeremy Allison
52fe04df8e Remove more static fstring/pstrings. Fix socket option
set on wrong fd (-1).
Jeremy.
2007-11-09 15:09:16 -08:00
Volker Lendecke
814bed029e Remove the silly "user_socket_options" global variable
This is better done with a 'lp_do_parameter(-1, "socket options", ..);
2007-11-09 15:11:54 +01:00
Jeremy Allison
7646f4b284 More pstring/fstring removal.
Jeremy.
2007-11-08 19:00:10 -08:00
Jeremy Allison
7a1de5b44e Remove more pstring/fstrings.
Jeremy.
2007-11-08 18:50:07 -08:00
Jeremy Allison
c21bc756e3 Remove unneeded variable.
Jeremy.
2007-11-08 18:01:00 -08:00
Jeremy Allison
ab8934844a Fix case where we have no dns domain name. Return a talloc of "".
Jeremy.
2007-11-08 17:58:55 -08:00
Jeremy Allison
2a0173743d Remove more fstring/pstring bad useage. Go talloc !
Jeremy.
2007-11-08 17:25:45 -08:00
Jeremy Allison
8c73e19f51 Fix state_path to take a const string, not use pstring.
Jeremy.
2007-11-02 09:27:04 -07:00
Gerald (Jerry) Carter
b7d2fadbef Patch from Debian Samba package maintainers:
Patch 1 of 3:

- Patch 1 adds the new variables
- Patch 2 makes uses of them for files belonging to the "state" path
  and the "code pages" path
  This patch seemed more easily acceptable, which explains why we
  separated it from patch 3
- Patch 3 reassigns files to the "cache" path. Indeed all "debatable"
  changes have been moved to that one

The point is adding:

- a path for non discardable state data: basically all TDB files
  that may need to be backed up
- a path for shared data: mostly codepage stuff
- a path for cache data to host files such as
  browse.dat, printers.tbd, <printer>.tdb

All these are currently mixed in "libdir" (${prefix}/lib/samba by default).
The patch keeps these new paths to point to ${prefix}/lib/samba by default
and does therefore not change the software behaviour.  Used alone, it just
adds unused variables...so it can safely be used in sources without any
behaviour change and no impact on Samba developers work.
2007-11-01 13:00:10 -04:00
Jeremy Allison
f35a266b3c RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Jeremy Allison
f6a01b82c5 Fix access control code to be IPv6/v4 protocol independent.
Make unix_wild_match() talloc, not pstring based.
Next will be name resolution code, and client code.
Jeremy.
2007-10-16 11:33:37 -07:00
Jeremy Allison
4a56b697b6 Move to protocol independent code in most of lib/util_sock.c
We don't use gethostbyname any more except in one case where
we're looking for host aliases (I don't know how to do that
with getaddrinfo yet). New function should be getaddrinfo().
Next step will be fixing lib/access.c, and then changing
libsmb/namequery.c to cope with IPv6 address returns.
Jeremy.
2007-10-15 16:11:48 -07:00
Jeremy Allison
3f6bd0e1ec Add start of IPv6 implementation. Currently most of this is avoiding
IPv6 in winbindd, but moves most of the socket functions that were
wrongly in lib/util.c into lib/util_sock.c and provides generic
IPv4/6 independent versions of most things. Still lots of work
to do, but now I can see how I'll fix the access check code.
Nasty part that remains is the name resolution code which is
used to returning arrays of in_addr structs.
Jeremy.
2007-10-10 18:25:16 -07:00
Gerald (Jerry) Carter
5c6c8e1fe9 [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch. 2007-10-10 15:34:30 -05:00
Jeremy Allison
760d993340 r25505: Add a replacement (IPv4 only) implementation of getaddrinfo/freeaddrinfo
under the 2 clause *BSD license for future use in IPv6 code. Original
code was from PostgreSQL and I've maintained their license even though
I've rewritten large parts of it (I probably should donate this back
to them).
Jeremy.
2007-10-10 12:31:10 -05:00
Jeremy Allison
327875182c r25472: Fix the interfaces code to detect IPv6 interfaces, using the
new standard getifaddrs() and freeifaddrs() interfaces. Currently
we only return IPv4 af_families. Needs fixing for binds to IPv6
but this has to be careful work.
Jeremy.
2007-10-10 12:31:06 -05:00
Günther Deschner
1f0d05807b r25396: Very obvious fix from Martin Zielinski.
Guenther
2007-10-10 12:31:02 -05:00
Jeremy Allison
7f0db75fb0 r25117: The mega-patch Jerry was waiting for. Remove all pstrings from
the main server code paths. We should now be able to cope with
paths up to PATH_MAX length now.
Final job will be to add the TALLOC_CTX * parameter to
unix_convert to make it explicit (for Volker).
Jeremy.
2007-10-10 12:30:41 -05:00
Volker Lendecke
df648d47ff r24949: Remove some static buffers 2007-10-10 12:30:29 -05:00