samba.git
16 years agoIncrease debug level
Volker Lendecke [Fri, 7 Dec 2007 09:45:33 +0000 (10:45 +0100)]
Increase debug level

16 years agoMove stuff from data to text
Volker Lendecke [Wed, 5 Dec 2007 20:09:57 +0000 (21:09 +0100)]
Move stuff from data to text

16 years agoint->bool
Volker Lendecke [Wed, 5 Dec 2007 19:58:25 +0000 (20:58 +0100)]
int->bool

16 years agoTiny simplifications
Volker Lendecke [Wed, 5 Dec 2007 19:53:22 +0000 (20:53 +0100)]
Tiny simplifications

locking.c:open_read_only was unused

don't export the silly boolean flag locking_init(bool read_only)

16 years agoRemove a static
Volker Lendecke [Wed, 5 Dec 2007 19:41:24 +0000 (20:41 +0100)]
Remove a static

16 years agoRemove two statics
Volker Lendecke [Wed, 5 Dec 2007 19:30:53 +0000 (20:30 +0100)]
Remove two statics

16 years agoremove a static
Volker Lendecke [Wed, 5 Dec 2007 17:46:53 +0000 (18:46 +0100)]
remove a static

16 years agoMany systems don't have sa_len as part of struct sockaddr.
Jeremy Allison [Sun, 9 Dec 2007 22:59:07 +0000 (14:59 -0800)]
Many systems don't have sa_len as part of struct sockaddr.
Revert 5c347cb46d85d04bbba7c99dca7ff9628f977d84
"Choose a better default for sockaddr length.".
Jeremy.

16 years agoSupport fetching very long server lists with RAP_NetServerEnum3.
James Peach [Sun, 9 Dec 2007 22:18:54 +0000 (14:18 -0800)]
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>.

16 years agoChoose a better default for sockaddr length.
James Peach [Sun, 9 Dec 2007 22:02:23 +0000 (14:02 -0800)]
Choose a better default for sockaddr length.

16 years agoSpecifically ask for IP4 addresses if we don't have IP6 support.
James Peach [Sun, 9 Dec 2007 22:01:57 +0000 (14:01 -0800)]
Specifically ask for IP4 addresses if we don't have IP6 support.

16 years agoMake sure NULL is defined to the IPv6 test doesn't spuriously fail.
James Peach [Sun, 9 Dec 2007 22:00:25 +0000 (14:00 -0800)]
Make sure NULL is defined to the IPv6 test doesn't spuriously fail.

16 years agoFix connect(2) callers to use correct sockaddr size.
James Peach [Sun, 9 Dec 2007 21:28:00 +0000 (13:28 -0800)]
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.

16 years agoMove load_case_tables() to after logging is set up. This can log
James Peach [Sun, 9 Dec 2007 21:22:19 +0000 (13:22 -0800)]
Move load_case_tables() to after logging is set up. This can log
errors.

16 years agoDon't copy the rpc function pointers
Volker Lendecke [Sun, 9 Dec 2007 18:46:06 +0000 (19:46 +0100)]
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?

16 years agoC++ warning
Volker Lendecke [Sat, 8 Dec 2007 10:25:05 +0000 (11:25 +0100)]
C++ warning

16 years agoGet rid of the msgbuf[1600]
Volker Lendecke [Sun, 9 Dec 2007 12:45:10 +0000 (13:45 +0100)]
Get rid of the msgbuf[1600]

16 years agoFix C++ warnings
Volker Lendecke [Sat, 8 Dec 2007 10:21:08 +0000 (11:21 +0100)]
Fix C++ warnings

16 years agoFix two incompatible pointer warnings
Volker Lendecke [Sat, 8 Dec 2007 10:20:53 +0000 (11:20 +0100)]
Fix two incompatible pointer warnings

Jeremy, please check

16 years agoAdd define guards around FSTRING_LEN.
Jeremy Allison [Sat, 8 Dec 2007 01:44:42 +0000 (17:44 -0800)]
Add define guards around FSTRING_LEN.
Jeremy.

16 years agoRemove next_token - all uses must now be next_token_talloc.
Jeremy Allison [Sat, 8 Dec 2007 01:32:32 +0000 (17:32 -0800)]
Remove next_token - all uses must now be next_token_talloc.
No more temptations to use static length strings.
Jeremy.

16 years agoA requiem for pstring.
Jeremy Allison [Fri, 7 Dec 2007 22:54:38 +0000 (14:54 -0800)]
A requiem for pstring.

                  --------------
                 /              \
                /      REST      \
               /        IN        \
              /       PEACE        \
             /                      \
             | The infamous pstring |
             |                      |
             |                      |
             |      7 December      |
             |                      |
             |         2007         |
            *|     *  *  *          | *
   _________)/\\_//(\/(/\)/\//\/\///|_)_______

Jeremy

16 years agoMore null deref fixes.
Jeremy Allison [Fri, 7 Dec 2007 22:43:31 +0000 (14:43 -0800)]
More null deref fixes.
Jeremy.

16 years agoMore null deref fixes.
Jeremy Allison [Fri, 7 Dec 2007 22:37:00 +0000 (14:37 -0800)]
More null deref fixes.
Jeremy

16 years agoDon't deref null pointers.
Jeremy Allison [Fri, 7 Dec 2007 22:35:04 +0000 (14:35 -0800)]
Don't deref null pointers.
Jeremy.

16 years agoAfter conversations with Jerry, remove smbctool until it's
Jeremy Allison [Fri, 7 Dec 2007 20:46:55 +0000 (12:46 -0800)]
After conversations with Jerry, remove smbctool until it's
maintained. Now I don't have to fix the pstrings in it :-).
Jeremy.

16 years agoWe don't need P_GSTRING or P_UGSTRING anymore.
Jeremy Allison [Fri, 7 Dec 2007 20:43:10 +0000 (12:43 -0800)]
We don't need P_GSTRING or P_UGSTRING anymore.
Jeremy.

16 years agoDon't build rpctorture anymore - not maintained. Just remove.
Jeremy Allison [Fri, 7 Dec 2007 20:26:32 +0000 (12:26 -0800)]
Don't build rpctorture anymore - not maintained. Just remove.
Remove all vestiges of pstring (except for smbctool as noted
in previous commit).
Jeremy

16 years agoFix call to clistr_pull_talloc.
Jeremy Allison [Fri, 7 Dec 2007 20:08:55 +0000 (12:08 -0800)]
Fix call to clistr_pull_talloc.
Jeremy.

16 years agoDon't double define fstring.
Jeremy Allison [Fri, 7 Dec 2007 20:04:40 +0000 (12:04 -0800)]
Don't double define fstring.
Jeremy.

16 years agoRemove pstrings completely except for smbctool (what does this do ?).
Jeremy Allison [Fri, 7 Dec 2007 20:02:44 +0000 (12:02 -0800)]
Remove pstrings completely except for smbctool (what does this do ?).
Don't build this for now.
Jeremy.

16 years agoRemove pstring from clitar.c
Jeremy Allison [Fri, 7 Dec 2007 19:28:16 +0000 (11:28 -0800)]
Remove pstring from clitar.c
Jeremy

16 years agoMerge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Jeremy Allison [Fri, 7 Dec 2007 17:57:19 +0000 (09:57 -0800)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test

16 years agoAdd NT_STATUS_DOWNGRADE_DETECTED (thanks to Magnus Mertens).
Günther Deschner [Fri, 7 Dec 2007 15:19:34 +0000 (16:19 +0100)]
Add NT_STATUS_DOWNGRADE_DETECTED (thanks to Magnus Mertens).

Guenther

16 years agoAttempt to fix make test :-)
Volker Lendecke [Fri, 7 Dec 2007 14:55:57 +0000 (15:55 +0100)]
Attempt to fix make test :-)

16 years agoPass only internal oplock request values to create_file
Volker Lendecke [Fri, 7 Dec 2007 11:57:11 +0000 (12:57 +0100)]
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

16 years agoMore parameter shuffling
Volker Lendecke [Fri, 7 Dec 2007 11:39:30 +0000 (12:39 +0100)]
More parameter shuffling

16 years agoRe-arrange create_file() parameters
Volker Lendecke [Fri, 7 Dec 2007 10:58:40 +0000 (11:58 +0100)]
Re-arrange create_file() parameters

This changes them to be a bit closer to open_file_ntcreate and thus provides
less surprises to developers

16 years agoMake fname arg to create_file a "const char *"
Volker Lendecke [Fri, 7 Dec 2007 09:46:11 +0000 (10:46 +0100)]
Make fname arg to create_file a "const char *"

16 years agoFix two unused variable warnings
Volker Lendecke [Fri, 7 Dec 2007 08:20:45 +0000 (09:20 +0100)]
Fix two unused variable warnings

I know this will be overwritten by the next "make idl", but it just bugs me
*now* :-)

Volker

16 years agoAllow to set custom message in wkssvc messagebuffer.
Günther Deschner [Fri, 7 Dec 2007 10:56:48 +0000 (11:56 +0100)]
Allow to set custom message in wkssvc messagebuffer.

Guenther

16 years agoFix build with new werror based pidl rpc.
Günther Deschner [Mon, 3 Dec 2007 21:12:31 +0000 (22:12 +0100)]
Fix build with new werror based pidl rpc.

Guenther

16 years agoAdd cmd_wkssvc_messagebuffersend().
Günther Deschner [Thu, 6 Dec 2007 18:06:30 +0000 (19:06 +0100)]
Add cmd_wkssvc_messagebuffersend().

Guenther

16 years agoAdd getjoininformation to rpcclient.
Günther Deschner [Mon, 3 Dec 2007 12:12:26 +0000 (13:12 +0100)]
Add getjoininformation to rpcclient.

Guenther

16 years ago*Really* fix the no password -N opt :-).
Jeremy Allison [Fri, 7 Dec 2007 03:15:56 +0000 (19:15 -0800)]
*Really* fix the no password -N opt :-).
Jeremy.

16 years agoFix the '-N' option.
Jeremy Allison [Fri, 7 Dec 2007 03:06:34 +0000 (19:06 -0800)]
Fix the '-N' option.
Jeremy.

16 years agoThese should be char *, but replace them with [1024] for now
Jeremy Allison [Fri, 7 Dec 2007 03:01:27 +0000 (19:01 -0800)]
These should be char *, but replace them with [1024] for now
to eliminate the pstring data type.
Jeremy

16 years agoMake all the tools use the proper accessor functions.
Jeremy Allison [Fri, 7 Dec 2007 02:58:01 +0000 (18:58 -0800)]
Make all the tools use the proper accessor functions.
Jeremy.

16 years agoFix typos in auth change.
Jeremy Allison [Fri, 7 Dec 2007 02:52:36 +0000 (18:52 -0800)]
Fix typos in auth change.
Jeremy.

16 years agoMissed smbmnt popt.
Jeremy Allison [Fri, 7 Dec 2007 02:51:10 +0000 (18:51 -0800)]
Missed smbmnt popt.
Jeremy.

16 years agoGet closer to building with smbmount. Move parameter line changes
Jeremy Allison [Fri, 7 Dec 2007 02:49:39 +0000 (18:49 -0800)]
Get closer to building with smbmount. Move parameter line changes
into lib/util.c
Jeremy.

16 years agoAdd popt to binaries in makefile. Hack clitar to compile until I fix it.
Jeremy Allison [Fri, 7 Dec 2007 02:08:01 +0000 (18:08 -0800)]
Add popt to binaries in makefile. Hack clitar to compile until I fix it.
Jeremy.

16 years agoMake cmdline_auth_info private to lib/popt_common.c. Provide
Jeremy Allison [Fri, 7 Dec 2007 01:22:57 +0000 (17:22 -0800)]
Make cmdline_auth_info private to lib/popt_common.c. Provide
accessor functions.
Jeremy.

16 years agoFix clidfs.c compile.
Jeremy Allison [Fri, 7 Dec 2007 01:17:03 +0000 (17:17 -0800)]
Fix clidfs.c compile.
Jeremy.

16 years agoRemove pstrings from client/client.c by doing a large rewrite.
Jeremy Allison [Fri, 7 Dec 2007 01:16:33 +0000 (17:16 -0800)]
Remove pstrings from client/client.c by doing a large rewrite.
Mostly compiles....
Jeremy.

16 years agoMerge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Jeremy Allison [Thu, 6 Dec 2007 19:17:37 +0000 (11:17 -0800)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test

16 years agoAllow to set level in cmd_wkssvc_wkstagetinfo().
Günther Deschner [Thu, 6 Dec 2007 18:05:54 +0000 (19:05 +0100)]
Allow to set level in cmd_wkssvc_wkstagetinfo().

Guenther

16 years agoDon't understand this. I have no changes here....
Jeremy Allison [Thu, 6 Dec 2007 18:10:16 +0000 (10:10 -0800)]
Don't understand this. I have no changes here....
Jeremy.

16 years agoMake output of net getdomainsid more meaningful. Unify spelling of SID. Display usage...
Karolin Seeger [Thu, 6 Dec 2007 12:54:45 +0000 (13:54 +0100)]
Make output of net getdomainsid more meaningful. Unify spelling of SID. Display usage if superfluous arguments are given.

Karolin

16 years agoRemove an incredible amount of whitespace.
Michael Adam [Thu, 6 Dec 2007 12:51:25 +0000 (13:51 +0100)]
Remove an incredible amount of whitespace.

Sorry - could not resist. Michael

16 years agoRemove trailing slashes from service name
Andreas Schneider [Thu, 6 Dec 2007 11:29:52 +0000 (12:29 +0100)]
Remove trailing slashes from service name

16 years agoprinting: remove emtpy print_test.c
Stefan Metzmacher [Thu, 6 Dec 2007 08:55:32 +0000 (09:55 +0100)]
printing: remove emtpy print_test.c

metze

16 years agolibads: fix typo
Stefan Metzmacher [Thu, 6 Dec 2007 08:53:42 +0000 (09:53 +0100)]
libads: fix typo

metze

16 years agoFix path length limits on cli_list (outgoing. Incoming
Jeremy Allison [Thu, 6 Dec 2007 00:56:19 +0000 (16:56 -0800)]
Fix path length limits on cli_list (outgoing. Incoming
will be fixed with pstring elimination).
Jeremy.

16 years agoImprove a debug message.
Michael Adam [Thu, 6 Dec 2007 00:49:37 +0000 (01:49 +0100)]
Improve a debug message.

Michael

16 years agoMerge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-simo
Simo Sorce [Wed, 5 Dec 2007 22:55:50 +0000 (17:55 -0500)]
Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-simo

16 years agopstring removal.
Jeremy Allison [Wed, 5 Dec 2007 22:55:08 +0000 (14:55 -0800)]
pstring removal.
Jeremy.

16 years agoMerge commit 'origin/v3-2-test' into v3-2-simo
Simo Sorce [Wed, 5 Dec 2007 22:54:50 +0000 (17:54 -0500)]
Merge commit 'origin/v3-2-test' into v3-2-simo

16 years agoFix warning
Simo Sorce [Wed, 5 Dec 2007 22:54:09 +0000 (17:54 -0500)]
Fix warning

16 years agoRemove arbitrary 1k limit on pathnames. Malloc them.
Jeremy Allison [Wed, 5 Dec 2007 21:31:24 +0000 (13:31 -0800)]
Remove arbitrary 1k limit on pathnames. Malloc them.
Jeremy.

16 years ago* helper source for handling cifs kernel module upcall for kerberos
Igor Mammedov [Wed, 5 Dec 2007 15:23:39 +0000 (18:23 +0300)]
* helper source for handling cifs kernel module upcall for kerberos

authorization
* Added -c option to set service prefix to "cifs" in service principal by
default service prefix "host" is used
* replaced malloc/free/srtncpy with replacements from samba project

Signed-off-by: Igor Mammedov <niallain@gmail.com>
16 years ago* Adds support for cifs.spnego helper into configure and Makefile.in
Igor Mammedov [Wed, 5 Dec 2007 15:21:29 +0000 (18:21 +0300)]
* Adds support for cifs.spnego helper into configure and Makefile.in

* Added checks for spnego prereq keyutils.h and kerberos in configure.in

Signed-off-by: Igor Mammedov <niallain@gmail.com>
16 years agoCompile fix to the automount support. Patch from GlaDiaC.
Gerald (Jerry) Carter [Wed, 5 Dec 2007 17:52:35 +0000 (11:52 -0600)]
Compile fix to the automount support.  Patch from GlaDiaC.

16 years agoFix a debug message (missing newline).
Michael Adam [Wed, 5 Dec 2007 16:14:12 +0000 (17:14 +0100)]
Fix a debug message (missing newline).

Michael

16 years agoThere's no point in passing down a 0
Volker Lendecke [Wed, 5 Dec 2007 14:34:07 +0000 (15:34 +0100)]
There's no point in passing down a 0

16 years agoremove some statics
Volker Lendecke [Sat, 24 Nov 2007 14:47:04 +0000 (15:47 +0100)]
remove some statics

16 years agoRemove some globals
Volker Lendecke [Sat, 24 Nov 2007 16:27:54 +0000 (17:27 +0100)]
Remove some globals

16 years agoMake share_info_db_init static
Volker Lendecke [Sat, 24 Nov 2007 21:50:36 +0000 (22:50 +0100)]
Make share_info_db_init static

16 years agoRemove a static, and "signal_received" needs to be sig_atomic_t
Volker Lendecke [Sun, 25 Nov 2007 08:33:29 +0000 (09:33 +0100)]
Remove a static, and "signal_received" needs to be sig_atomic_t

16 years agoMove create_file to open.c
Volker Lendecke [Sun, 2 Dec 2007 14:35:22 +0000 (15:35 +0100)]
Move create_file to open.c

I'm checking in this long sequence of micro-checkins for review, the overall
patch from 3b057022a5 to this is not too large.

16 years agoFix an uninitialized variable
Volker Lendecke [Sun, 2 Dec 2007 13:55:01 +0000 (14:55 +0100)]
Fix an uninitialized variable

16 years agoFix debug
Volker Lendecke [Sun, 2 Dec 2007 13:56:57 +0000 (14:56 +0100)]
Fix debug

16 years agoFix attribute calculation for ntcreate&x
Volker Lendecke [Sun, 2 Dec 2007 13:37:44 +0000 (14:37 +0100)]
Fix attribute calculation for ntcreate&x

16 years agoFix error returns
Volker Lendecke [Sun, 2 Dec 2007 12:34:59 +0000 (13:34 +0100)]
Fix error returns

16 years agoFix debugs
Volker Lendecke [Sun, 2 Dec 2007 12:34:27 +0000 (13:34 +0100)]
Fix debugs

16 years agoImplement create_file()
Volker Lendecke [Sat, 1 Dec 2007 21:36:17 +0000 (22:36 +0100)]
Implement create_file()

Rip out the cores of reply_ntcreate_and_X and call_nt_transact_create

Volker

16 years agoReformatting, also allow quotas for transact_create
Volker Lendecke [Sat, 1 Dec 2007 20:31:52 +0000 (21:31 +0100)]
Reformatting, also allow quotas for transact_create

16 years agoTiny refactorings
Volker Lendecke [Sat, 1 Dec 2007 19:03:47 +0000 (20:03 +0100)]
Tiny refactorings

16 years agoSplit out sd parsing
Volker Lendecke [Sat, 1 Dec 2007 18:16:52 +0000 (19:16 +0100)]
Split out sd parsing

16 years agoReformatting
Volker Lendecke [Sat, 1 Dec 2007 18:03:25 +0000 (19:03 +0100)]
Reformatting

16 years agoAlign formatting, one TALLOC_FREE is enough
Volker Lendecke [Sat, 1 Dec 2007 14:07:58 +0000 (15:07 +0100)]
Align formatting, one TALLOC_FREE is enough

16 years agoMove pulling the ea list out of the way
Volker Lendecke [Sat, 1 Dec 2007 14:05:18 +0000 (15:05 +0100)]
Move pulling the ea list out of the way

16 years agoReformatting
Volker Lendecke [Sat, 1 Dec 2007 13:57:46 +0000 (14:57 +0100)]
Reformatting

16 years agoPut posix semantic calculation in the same place in both routines
Volker Lendecke [Sat, 1 Dec 2007 13:55:56 +0000 (14:55 +0100)]
Put posix semantic calculation in the same place in both routines

16 years agoTiny refactoring
Volker Lendecke [Sat, 1 Dec 2007 13:52:25 +0000 (14:52 +0100)]
Tiny refactoring

Reformatting, consolidate oplock calculation to the same place in both routines

16 years agoTiny refactoring
Volker Lendecke [Sat, 1 Dec 2007 13:49:58 +0000 (14:49 +0100)]
Tiny refactoring

16 years agoTALLOC_FREE early
Volker Lendecke [Sat, 1 Dec 2007 13:38:19 +0000 (14:38 +0100)]
TALLOC_FREE early

16 years agoconsolidate srvstr_get_path in ntcreate_and_X
Volker Lendecke [Thu, 29 Nov 2007 14:45:53 +0000 (15:45 +0100)]
consolidate srvstr_get_path in ntcreate_and_X

16 years agoTiny refactoring
Volker Lendecke [Thu, 29 Nov 2007 14:38:00 +0000 (15:38 +0100)]
Tiny refactoring

16 years agotiny refactoring
Volker Lendecke [Thu, 29 Nov 2007 14:15:33 +0000 (15:15 +0100)]
tiny refactoring