1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

24130 Commits

Author SHA1 Message Date
Volker Lendecke
af082d096e Correctly unbecome_root() on error
(This used to be commit aec5f15126)
2007-12-10 12:37:37 +01:00
Volker Lendecke
2585232054 Simplify add_session_user
(This used to be commit f98082ccf0)
2007-12-10 12:22:01 +01:00
Volker Lendecke
3a9576c724 Increase debug level
(This used to be commit 4e6df55471)
2007-12-10 12:22:01 +01:00
Volker Lendecke
cc1664416d Move stuff from data to text
(This used to be commit 49f06a2fa7)
2007-12-10 12:22:01 +01:00
Volker Lendecke
e9e33adc7c int->bool
(This used to be commit 8742581952)
2007-12-10 12:22:01 +01:00
Volker Lendecke
d60fac2a5a Tiny simplifications
locking.c:open_read_only was unused

don't export the silly boolean flag locking_init(bool read_only)
(This used to be commit 2f3c865707)
2007-12-10 12:22:01 +01:00
Volker Lendecke
0527d3758a Remove a static
(This used to be commit 1f317f471a)
2007-12-10 12:22:01 +01:00
Volker Lendecke
f4fe725ff1 Remove two statics
(This used to be commit 8ee502e1e5)
2007-12-10 12:22:01 +01:00
Volker Lendecke
a1ceee904c remove a static
(This used to be commit 0006b14d38)
2007-12-10 12:22:01 +01:00
Jeremy Allison
632ab7dc2e Many systems don't have sa_len as part of struct sockaddr.
Revert 5c347cb46d
"Choose a better default for sockaddr length.".
Jeremy.
(This used to be commit 677ac6adc3)
2007-12-09 14:59:07 -08:00
James Peach
f78ce189c2 Support fetching very long server lists with RAP_NetServerEnum3.
Use the RAP_NetServerEnum3 server list continuation API for retrieving
server lists that are too long to fit in a single reply.

Patch from George Colley <gcolley@apple.com>.
(This used to be commit 40c26d5573)
2007-12-09 14:18:54 -08:00
James Peach
8892c7a235 Choose a better default for sockaddr length.
(This used to be commit 5c347cb46d)
2007-12-09 14:02:23 -08:00
James Peach
39f0e6d22c Specifically ask for IP4 addresses if we don't have IP6 support.
(This used to be commit 4786654992)
2007-12-09 14:01:57 -08:00
James Peach
c553b6f7fa Make sure NULL is defined to the IPv6 test doesn't spuriously fail.
(This used to be commit 87c302e250)
2007-12-09 14:00:25 -08:00
James Peach
daba3f8b54 Fix connect(2) callers to use correct sockaddr size.
Some systems (eg Mac OSX 10.5) require the length passed to match
the socket address family. This introduces sys_connect() that does
the right thing, and replaces all uses oc connect(2) with sys_connect().

Note that there are some LGPL callers that still call connect(2)
directly.
(This used to be commit e1bfdc17c4)
2007-12-09 13:28:00 -08:00
James Peach
2ecdbea0cb Move load_case_tables() to after logging is set up. This can log
errors.
(This used to be commit ffee51586c)
2007-12-09 13:22:19 -08:00
Volker Lendecke
6bec071408 Don't copy the rpc function pointers
This actually shows up in a valgrind massif run with 4.1% of allocated memory.
I don't see why we would have to make a copy here.

Metze?
(This used to be commit 616d6b97e5)
2007-12-09 11:11:21 -08:00
Volker Lendecke
d58868f2a4 C++ warning
(This used to be commit 85a7f800b6)
2007-12-09 17:04:05 +01:00
Volker Lendecke
22e329d37f Get rid of the msgbuf[1600]
(This used to be commit af22800791)
2007-12-09 17:03:33 +01:00
Volker Lendecke
1e26ecf666 Fix C++ warnings
(This used to be commit 01a5c3ea4b)
2007-12-08 09:39:36 -08:00
Volker Lendecke
0cdcd255a5 Fix two incompatible pointer warnings
Jeremy, please check
(This used to be commit 60500fac30)
2007-12-08 09:39:20 -08:00
Jeremy Allison
6e995e4f8c Add define guards around FSTRING_LEN.
Jeremy.
(This used to be commit ea8633689d)
2007-12-07 17:44:42 -08:00
Jeremy Allison
42cfffae80 Remove next_token - all uses must now be next_token_talloc.
No more temptations to use static length strings.
Jeremy.
(This used to be commit ec003f3936)
2007-12-07 17:32:32 -08:00
Jeremy Allison
25288b0e44 A requiem for pstring.
--------------
                 /              \
                /      REST      \
               /        IN        \
              /       PEACE        \
             /                      \
             | The infamous pstring |
             |                      |
             |                      |
             |      7 December      |
             |                      |
             |         2007         |
            *|     *  *  *          | *
   _________)/\\_//(\/(/\)/\//\/\///|_)_______

Jeremy
(This used to be commit bca371bff8)
2007-12-07 14:54:38 -08:00
Jeremy Allison
4deeca97e4 More null deref fixes.
Jeremy.
(This used to be commit efaebdb141)
2007-12-07 14:43:31 -08:00
Jeremy Allison
097e5b4fc4 More null deref fixes.
Jeremy
(This used to be commit 78c98796d9)
2007-12-07 14:37:00 -08:00
Jeremy Allison
8267331be6 Don't deref null pointers.
Jeremy.
(This used to be commit 686e4e5efe)
2007-12-07 14:35:04 -08:00
Jeremy Allison
c281ff715b After conversations with Jerry, remove smbctool until it's
maintained. Now I don't have to fix the pstrings in it :-).
Jeremy.
(This used to be commit 9da4f40843)
2007-12-07 12:46:55 -08:00
Jeremy Allison
ade51769d5 We don't need P_GSTRING or P_UGSTRING anymore.
Jeremy.
(This used to be commit 78dc756000)
2007-12-07 12:43:10 -08:00
Jeremy Allison
acf15ae730 Don't build rpctorture anymore - not maintained. Just remove.
Remove all vestiges of pstring (except for smbctool as noted
in previous commit).
Jeremy
(This used to be commit 4c32a22ac5)
2007-12-07 12:26:32 -08:00
Jeremy Allison
590da03ba3 Fix call to clistr_pull_talloc.
Jeremy.
(This used to be commit 86700b7e2e)
2007-12-07 12:08:55 -08:00
Jeremy Allison
8404873851 Don't double define fstring.
Jeremy.
(This used to be commit 822b2ead9b)
2007-12-07 12:04:40 -08:00
Jeremy Allison
9e8180b983 Remove pstrings completely except for smbctool (what does this do ?).
Don't build this for now.
Jeremy.
(This used to be commit 46b67fd82c)
2007-12-07 12:02:44 -08:00
Jeremy Allison
67344a467f Remove pstring from clitar.c
Jeremy
(This used to be commit 1d5fee5038)
2007-12-07 11:28:16 -08:00
Jeremy Allison
5b3459e340 Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 0c21c5fa84)
2007-12-07 09:57:19 -08:00
Günther Deschner
d3b4b69a27 Add NT_STATUS_DOWNGRADE_DETECTED (thanks to Magnus Mertens).
Guenther
(This used to be commit 970daaa0a6)
2007-12-07 16:20:22 +01:00
Volker Lendecke
a23d09081f Attempt to fix make test :-)
(This used to be commit de3a3e3745)
2007-12-07 16:00:01 +01:00
Volker Lendecke
ca4eee5bbe Pass only internal oplock request values to create_file
Other callers (e.g. reply_open_and_X) might have other ideas of the bit
shuffling
(This used to be commit 6a58d823e5)
2007-12-07 14:05:06 +01:00
Volker Lendecke
ce535b4dd8 More parameter shuffling
(This used to be commit 8f70f691ff)
2007-12-07 14:05:06 +01:00
Volker Lendecke
c55e44b6a7 Re-arrange create_file() parameters
This changes them to be a bit closer to open_file_ntcreate and thus provides
less surprises to developers
(This used to be commit d000258b96)
2007-12-07 14:05:05 +01:00
Volker Lendecke
30d31a3f85 Make fname arg to create_file a "const char *"
(This used to be commit da94b5f9e3)
2007-12-07 14:05:05 +01:00
Volker Lendecke
bccadf83bb Fix two unused variable warnings
I know this will be overwritten by the next "make idl", but it just bugs me
*now* :-)

Volker
(This used to be commit a0abb88521)
2007-12-07 14:05:05 +01:00
Günther Deschner
b2fac35adf Allow to set custom message in wkssvc messagebuffer.
Guenther
(This used to be commit 4c03cbdc81)
2007-12-07 11:56:48 +01:00
Günther Deschner
61dbd449b8 Fix build with new werror based pidl rpc.
Guenther
(This used to be commit 0e8fdfac8a)
2007-12-07 11:54:01 +01:00
Günther Deschner
783afeb5fa Add cmd_wkssvc_messagebuffersend().
Guenther
(This used to be commit 71e512efab)
2007-12-07 11:43:00 +01:00
Günther Deschner
09c4b72a57 Add getjoininformation to rpcclient.
Guenther
(This used to be commit 699f6b1bc3)
2007-12-07 11:42:24 +01:00
Jeremy Allison
9e03d6117a *Really* fix the no password -N opt :-).
Jeremy.
(This used to be commit 187d8a94ea)
2007-12-06 19:15:56 -08:00
Jeremy Allison
e7781bd20f Fix the '-N' option.
Jeremy.
(This used to be commit b91b61b54f)
2007-12-06 19:06:34 -08:00
Jeremy Allison
77652360ec These should be char *, but replace them with [1024] for now
to eliminate the pstring data type.
Jeremy
(This used to be commit d690ba7710)
2007-12-06 19:01:27 -08:00
Jeremy Allison
e2ae63bcf7 Make all the tools use the proper accessor functions.
Jeremy.
(This used to be commit 6d61bb8797)
2007-12-06 18:58:01 -08:00