vlendec/samba-autobuild/.git
21 years agoNMBD string parinoia and memcpy() parinoia fixes from HEAD.
Andrew Bartlett [Tue, 18 Mar 2003 11:56:56 +0000 (11:56 +0000)]
NMBD string parinoia and memcpy() parinoia fixes from HEAD.

Andrew Bartlett
(This used to be commit fb29caddd987f94989f852584b912eeee45b50da)

21 years agoNTLMSSP updates from HEAD.
Andrew Bartlett [Tue, 18 Mar 2003 11:53:20 +0000 (11:53 +0000)]
NTLMSSP updates from HEAD.

Andrew Bartlett
(This used to be commit f4ae028c2ad6ff8c7da3a6ef77a92762861144e1)

21 years agoJeremy merged across my string parinoia fixes, but forgot to enable them! :-)
Andrew Bartlett [Tue, 18 Mar 2003 11:22:52 +0000 (11:22 +0000)]
Jeremy merged across my string parinoia fixes, but forgot to enable them! :-)

This patch catches up on the rest of the work - as much string checking
as is possible is done at compile time, and the rest at runtime.

Lots of code converted to pstrcpy() etc, and other code reworked to correctly
call sizeof().

Andrew Bartlett
(This used to be commit c5b604e2ee67d74241ae2fa07ae904647d35a2be)

21 years agoMerge signed/unsigned fix from HEAD.
Andrew Bartlett [Tue, 18 Mar 2003 11:18:27 +0000 (11:18 +0000)]
Merge signed/unsigned fix from HEAD.
(This used to be commit 196628432130f826505187a27207a7b947e034cf)

21 years agoOne more on set_local_machine_name() taking a new 'perm' argument.
Andrew Bartlett [Tue, 18 Mar 2003 11:08:24 +0000 (11:08 +0000)]
One more on set_local_machine_name() taking a new 'perm' argument.
(This used to be commit 29d909b184e0044f728091f3215eeb58bbeff437)

21 years agoFix segfault on FD_SET() when we have an fd of -1
Andrew Bartlett [Tue, 18 Mar 2003 10:56:37 +0000 (10:56 +0000)]
Fix segfault on FD_SET() when we have an fd of -1

Andrew Bartlett
(This used to be commit 92bd0f69df4eef612b73da00e45d244f5236afa2)

21 years agoMerge whitespace to match HEAD.
Andrew Bartlett [Tue, 18 Mar 2003 10:42:41 +0000 (10:42 +0000)]
Merge whitespace to match HEAD.
(This used to be commit 454fb434195b8d46cbcbaee6a200070e5bcd7364)

21 years agoAdd an extra parameter to our 'set_remote_machine_name' and
Andrew Bartlett [Tue, 18 Mar 2003 09:52:55 +0000 (09:52 +0000)]
Add an extra parameter to our 'set_remote_machine_name' and
'set_local_machine_name' so that the client can't change it from under us.

(.NET RC2 and WinXP install calls the machine 'machinename' during NTLMSSP
on the domain join).

Andrew Bartlett
(This used to be commit 4c7163e7c2cc09bd95faa05156ee480957a7a4d8)

21 years agoAdd const.
Andrew Bartlett [Tue, 18 Mar 2003 09:43:00 +0000 (09:43 +0000)]
Add const.
(This used to be commit ed245023016779700571d108e7b9339236bcbe7c)

21 years agoThis commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to...
cvs2svn Import User [Tue, 18 Mar 2003 07:09:24 +0000 (07:09 +0000)]
This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit f0d009c3e91979b0dc3443e16f3f545bcc64cfda)

21 years agoSplit "clobber" function and variables into its own file before it
Martin Pool [Tue, 18 Mar 2003 07:09:23 +0000 (07:09 +0000)]
Split "clobber" function and variables into its own file before it
grows too much larger.
(This used to be commit 4bbddbfc6a97ebb11e299aa7bd07ebebeab42c65)

21 years agoMerge of waider's rpcclient return type patch.
Tim Potter [Tue, 18 Mar 2003 06:30:30 +0000 (06:30 +0000)]
Merge of waider's rpcclient return type patch.
(This used to be commit fb91bfa7a28f548dcc549f7e09805e4485c83538)

21 years agoMerge of enumdomusers rpcclient command.
Tim Potter [Tue, 18 Mar 2003 06:11:17 +0000 (06:11 +0000)]
Merge of enumdomusers rpcclient command.
(This used to be commit 8cabdd635df2455d9b25604f2ea0fb85efa067e2)

21 years agoMerge of popt help cleanups.
Tim Potter [Tue, 18 Mar 2003 06:07:50 +0000 (06:07 +0000)]
Merge of popt help cleanups.
(This used to be commit 067810ed4a38c567e64e683a24cdd405479b5ee1)

21 years agoMerge of #ifdef'ed out auth_smbd wrapper.
Tim Potter [Tue, 18 Mar 2003 06:07:16 +0000 (06:07 +0000)]
Merge of #ifdef'ed out auth_smbd wrapper.
(This used to be commit fc0b2fcf977b9014d2478296168b22e9faa22108)

21 years agoIgnore t_stringoverflow binary.
Martin Pool [Tue, 18 Mar 2003 05:52:05 +0000 (05:52 +0000)]
Ignore t_stringoverflow binary.
(This used to be commit 195582c4cb7906ab95e47f5a2aea4ae86a7ab023)

21 years agoIgnore .po and .po32 files.
Martin Pool [Tue, 18 Mar 2003 05:51:41 +0000 (05:51 +0000)]
Ignore .po and .po32 files.
(This used to be commit 8d64419625dda242fdb7a5d956644b052b43a2ea)

21 years agoComment about deprecated macro overmalloc_safe_strcpy().
Martin Pool [Tue, 18 Mar 2003 05:42:53 +0000 (05:42 +0000)]
Comment about deprecated macro overmalloc_safe_strcpy().
(This used to be commit 5ac062580690eee9b4bd423dbb82631c0cdb8b30)

21 years agoRemove static libbigballofmud, which just does not seem to link.
Martin Pool [Tue, 18 Mar 2003 05:37:23 +0000 (05:37 +0000)]
Remove static libbigballofmud, which just does not seem to link.

Add bin/t_stringoverflow test case.  Not built by default.
(This used to be commit 7741bb8d18e7ba16522c00513174f2909d75535d)

21 years agoThe new string macros catch a bug at compile that previously only
Martin Pool [Tue, 18 Mar 2003 05:31:52 +0000 (05:31 +0000)]
The new string macros catch a bug at compile that previously only
trapped at runtime, which is great.  So we have to try a little harder
to provoke an overflow -- which is still caught nicely in developer
mode.
(This used to be commit cea126f62ad411f5efbebc7c5d39297fd8ef9efb)

21 years agoUpdate comment: Valgrind 1.9.4 seems to always respect client
Martin Pool [Tue, 18 Mar 2003 05:30:15 +0000 (05:30 +0000)]
Update comment: Valgrind 1.9.4 seems to always respect client
requests, without needing --client-perms=yes.
(This used to be commit 412a8780c35ee9449c9682e3ef73afb2c4933285)

21 years agoSpeling fixes and a little extra documentation.
Martin Pool [Tue, 18 Mar 2003 05:04:44 +0000 (05:04 +0000)]
Speling fixes and a little extra documentation.
(This used to be commit 8da383bb3e63d25ceb0204c775580f2f1b3336ec)

21 years agoglobal_globber_region_function/line ought to be recorded before
Martin Pool [Tue, 18 Mar 2003 05:00:02 +0000 (05:00 +0000)]
global_globber_region_function/line ought to be recorded before
clobbering the region, just in case clobbering causes us to crash
immediately.  (That might happen if we just shot ourselves in the
stack and strcpy was not inlined.)

Also, in DEVELOPER mode and when Valgrind is available, mark the
clobbered region as uninitialized.  This is an even stronger
protection than clobbering with 0xf1.
(This used to be commit 5653a42ae695f4b8f4c14d3184ca76523d38b51b)

21 years agoDecode waitstatus values when a command fails.
Martin Pool [Tue, 18 Mar 2003 03:07:39 +0000 (03:07 +0000)]
Decode waitstatus values when a command fails.
(This used to be commit e1baab1ee04b27447445351d0d88b0c02a5fa85d)

21 years agoMerge in the developer string options from HEAD. We need to ensure 3.0
Jeremy Allison [Tue, 18 Mar 2003 01:48:11 +0000 (01:48 +0000)]
Merge in the developer string options from HEAD. We need to ensure 3.0
is as stable as possible in the string department and some pain now
will help later :-).
Jeremy.
(This used to be commit 86e3eddac698d90f4666b8492b4603a4efbbd67b)

21 years agoAdded #ifdef'ed out implementation of auth_smbd python fn. Uncomment
Tim Potter [Tue, 18 Mar 2003 01:34:09 +0000 (01:34 +0000)]
Added #ifdef'ed out implementation of auth_smbd python fn.  Uncomment
when auth_smbd functionality merged to HEAD.
(This used to be commit 2b6d13672dc1e4a46fc2600e729c22d0ee7e534b)

21 years agoStart of a unit test for info3 caching. Much unfrastructure required
Tim Potter [Tue, 18 Mar 2003 01:32:51 +0000 (01:32 +0000)]
Start of a unit test for info3 caching.  Much unfrastructure required
before this can be fully implemented.  )-:
(This used to be commit a040a8471f884cb295100f841594d86ddf754bb6)

21 years agoMerge from HEAD - make winbindd locking sane again:
Andrew Bartlett [Mon, 17 Mar 2003 23:06:12 +0000 (23:06 +0000)]
Merge from HEAD - make winbindd locking sane again:

Original message:

This patch attemptes to clean up winbindd's mutex locking.

The current locking scheme in winbind is a complete mess - indeed, the
next step should be to push the locking into cli_full_connection(), but
I'll leave it for now.

This patch works on the noted behaviour that 2 parts of the connection
process need protection - and independent protection.  Tim Potter did
some work on this a little while back, verifying the second case.

The two cases are:
 - between connect() and first session setup
 - during the auth2 phase of the netlogon pipe setup.

I've removed the counter on the lock, as I fail to see what it gains us.

This patch also adds 'anonymous fallback' to our winbindd -> DC connection.

If the authenticated connection fails (wbinfo -A specifed) - say that
account isn't trusted by a trusted DC - then we try an anonymous.

Both tpot and mbp like the patch.

Andrew Bartlett
(This used to be commit b5283c00a900393b83f0edb2785c5caf402404eb)

21 years agoMerge from HEAD:
Andrew Bartlett [Mon, 17 Mar 2003 23:04:03 +0000 (23:04 +0000)]
Merge from HEAD:

signed/unsigned (mostly i counters)

a little bit of const.

Andrew Bartlett
(This used to be commit 50f0ca752e5058c4051f42a9337361373ba1f727)

21 years agoMerge from HEAD:
Andrew Bartlett [Mon, 17 Mar 2003 22:58:24 +0000 (22:58 +0000)]
Merge from HEAD:

net ads password

Heimdal compile fixes.

Andrew Bartlett
(This used to be commit 3aa4f923e99f453310bb4a8d43ce43757591909d)

21 years agoMerge from HEAD:
Andrew Bartlett [Mon, 17 Mar 2003 22:56:13 +0000 (22:56 +0000)]
Merge from HEAD:

 - Make ReadDirName return a const char*.

 - Consequential changes from that

 - mark our fstring/pstring assumptions in function prototypes

Andrew Bartlett
(This used to be commit 10b53d7c6fd77f23433dd2ef12bb14b227147a48)

21 years agoThe kerberos_verify compoenent of the SessionSetup sync with HEAD.
Andrew Bartlett [Mon, 17 Mar 2003 22:46:12 +0000 (22:46 +0000)]
The kerberos_verify compoenent of the SessionSetup sync with HEAD.

Andrew Bartlett
(This used to be commit 64796ed27a3842be1dde52dd4f46698e95961767)

21 years agoMerge from HEAD - sync up SessionSetup code to HEAD, including Luke Howard's
Andrew Bartlett [Mon, 17 Mar 2003 22:45:16 +0000 (22:45 +0000)]
Merge from HEAD - sync up SessionSetup code to HEAD, including Luke Howard's
session key and auth verifier patches.

Andrew Bartlett
(This used to be commit 3f9616a68a855acbae3f405c27ee2358fbe7ba2c)

21 years agoMerge from HEAD - doxygen
Andrew Bartlett [Mon, 17 Mar 2003 22:43:57 +0000 (22:43 +0000)]
Merge from HEAD - doxygen
(This used to be commit 7a2566f2e922191e691b6dafb1a09e22913cccd6)

21 years agoMege from HEAD - doxygen.
Andrew Bartlett [Mon, 17 Mar 2003 22:42:56 +0000 (22:42 +0000)]
Mege from HEAD - doxygen.
(This used to be commit 04a5cbc8964386774acdca759b4cfaded068c8f2)

21 years agoMerge from (earlier) HEAD - doxygen.
Andrew Bartlett [Mon, 17 Mar 2003 22:42:01 +0000 (22:42 +0000)]
Merge from (earlier) HEAD - doxygen.

I'm not merging the current HEAD string stuff quite yet.
(This used to be commit 9b8d12e081462566043bb51e9c95605609572a54)

21 years agomerge from HEAD - dump tokenGroups as sids.
Andrew Bartlett [Mon, 17 Mar 2003 22:41:14 +0000 (22:41 +0000)]
merge from HEAD - dump tokenGroups as sids.
(This used to be commit f0daa15521e6352e25aa998f7e682f448e0fe51a)

21 years agopstrcpy_base merges for client-side smbpasswd.
Andrew Bartlett [Mon, 17 Mar 2003 22:40:37 +0000 (22:40 +0000)]
pstrcpy_base merges for client-side smbpasswd.

Andrew Bartlett
(This used to be commit 980f2eb7c2efa1a2c83098aebecf0e25a05724cb)

21 years agoMerge from HEAD:
Andrew Bartlett [Mon, 17 Mar 2003 22:33:34 +0000 (22:33 +0000)]
Merge from HEAD:

new 'net ads dn'

doxygen fixes

net help fixes.
(This used to be commit de24fcb097ebf0d1aec92e787622cab64d10c553)

21 years agoMerge new statcache.c from HEAD.
Andrew Bartlett [Mon, 17 Mar 2003 22:23:51 +0000 (22:23 +0000)]
Merge new statcache.c from HEAD.
(This used to be commit 3b9db928fcaec322698d046db3a8a042b9a1d30c)

21 years agoAdd copyright.
Andrew Bartlett [Mon, 17 Mar 2003 22:22:46 +0000 (22:22 +0000)]
Add copyright.
(This used to be commit a7f9c3657ff052e382e290059f50f1d9812b8221)

21 years agoFix memory leak.
Volker Lendecke [Mon, 17 Mar 2003 22:10:49 +0000 (22:10 +0000)]
Fix memory leak.

Volker
(This used to be commit 115cd4b27f84343c7f98622717edda6da4866a6b)

21 years agoFix memory leak.
Volker Lendecke [Mon, 17 Mar 2003 22:09:06 +0000 (22:09 +0000)]
Fix memory leak.

Volker
(This used to be commit e8975d6e7bdcceb78a83a3446cf1430e1e3f1a72)

21 years agoFix building --with-smbwrapper.
Tim Potter [Mon, 17 Mar 2003 11:54:12 +0000 (11:54 +0000)]
Fix building --with-smbwrapper.
(This used to be commit 1fb5c92bfb96d966a31d5a4d882a411b9c0b497c)

21 years agoAdded a slightly modified version of Tridge's note about securing
Tim Potter [Mon, 17 Mar 2003 11:03:29 +0000 (11:03 +0000)]
Added a slightly modified version of Tridge's note about securing
a Samba server.
(This used to be commit 03a227b7ee7ed6927541966ec226344cd8c88aff)

21 years agoRun autoconf. Shouldn't we have an autogen.sh here?
Tim Potter [Mon, 17 Mar 2003 11:02:54 +0000 (11:02 +0000)]
Run autoconf.  Shouldn't we have an autogen.sh here?
(This used to be commit a43fe8e5f0cc95a8fb89db4ab1ee051b8c9d1bab)

21 years agoFix invalid SAFE_FREE() of talloc()ed memory.
Andrew Bartlett [Mon, 17 Mar 2003 10:59:11 +0000 (10:59 +0000)]
Fix invalid SAFE_FREE() of talloc()ed memory.

Andrew Bartlett
(This used to be commit 21add5f97d0d112094e34a02e6319991a1d2af4d)

21 years agoBrain fart - make sure we truncate the right string...
Andrew Bartlett [Mon, 17 Mar 2003 10:58:05 +0000 (10:58 +0000)]
Brain fart - make sure we truncate the right string...

Andrew Bartlett
(This used to be commit 32eb2cdca62a784d96207507e273bbbf77b0c6c3)

21 years agoCall AC_MSG_ERROR if jw, perl or htmldoc is not installed rather than
Tim Potter [Mon, 17 Mar 2003 10:26:44 +0000 (10:26 +0000)]
Call AC_MSG_ERROR if jw, perl or htmldoc is not installed rather than
generate a bodgy Makefile.
(This used to be commit 2842e0925debe8bfabfdf011913cf5e13e824c10)

21 years agoFix const warnings.
Andrew Bartlett [Mon, 17 Mar 2003 09:18:06 +0000 (09:18 +0000)]
Fix const warnings.

Andrew Bartlett
(This used to be commit fc1408d5d1a8b64dfd20268ab6f4a5f2a007614b)

21 years agoAdd const.
Andrew Bartlett [Mon, 17 Mar 2003 09:08:34 +0000 (09:08 +0000)]
Add const.
(This used to be commit 02f81719c7c179b61663bdf789c01ab62286fea2)

21 years agoMore statcache fixes - and add a bit more doco.
Andrew Bartlett [Mon, 17 Mar 2003 08:03:08 +0000 (08:03 +0000)]
More statcache fixes - and add a bit more doco.

Andrew Bartlett
(This used to be commit 0e8dd52f6973ac5219e2c2dd53824de71f512083)

21 years agoApplied waider's patch to return DOS error codes for pipes that
Tim Potter [Mon, 17 Mar 2003 05:55:41 +0000 (05:55 +0000)]
Applied waider's patch to return DOS error codes for pipes that
support it.
(This used to be commit ac3df9a8051bd105e8e4192d36b3024fdf9f9506)

21 years agoIgnore .pyc files.
Tim Potter [Mon, 17 Mar 2003 05:46:54 +0000 (05:46 +0000)]
Ignore .pyc files.
(This used to be commit b20a357ac534b513383ad20046a99bb7f39bba25)

21 years agoFix a memory leak - 'smbcontrol smbd pool-usage' is your freind!
Andrew Bartlett [Mon, 17 Mar 2003 04:42:57 +0000 (04:42 +0000)]
Fix a memory leak - 'smbcontrol smbd pool-usage' is your freind!

Andrew Bartlett
(This used to be commit a12e8524997e329a4f4cd766d6371e384698795a)

21 years agoSome cosmetic changes to make the popt --usage output look nicer.
Tim Potter [Mon, 17 Mar 2003 03:56:58 +0000 (03:56 +0000)]
Some cosmetic changes to make the popt --usage output look nicer.
(This used to be commit 39124b9a62e1ba0f8089c36b27d6c79352a27973)

21 years agoFix memory leaks and add parinoioa code to our stat() cache.
Andrew Bartlett [Mon, 17 Mar 2003 03:47:15 +0000 (03:47 +0000)]
Fix memory leaks and add parinoioa code to our stat() cache.

Andrew Bartlett
(This used to be commit 3fd07bd25eefdb2a7a6891fa1169ab2425607249)

21 years agoMissed one when I move 'share_sanity_checks' to use an fstring for 'dev'.
Andrew Bartlett [Sun, 16 Mar 2003 22:07:36 +0000 (22:07 +0000)]
Missed one when I move 'share_sanity_checks' to use an fstring for 'dev'.

Andrew Bartlett
(This used to be commit a0208a4f74f9c61eb1e346d9cb62dbe00ef4c24a)

21 years agoMake sure we mark the assumption of a fstring parameter for 'devicetype'
Andrew Bartlett [Sun, 16 Mar 2003 13:24:36 +0000 (13:24 +0000)]
Make sure we mark the assumption of a fstring parameter for 'devicetype'
in the function prototype, and change callers to respect this.

Andrew Bartlett
(This used to be commit 9f3d3c380120f16d76d68f346799282d61eec892)

21 years agoAdd const.
Andrew Bartlett [Sun, 16 Mar 2003 13:23:12 +0000 (13:23 +0000)]
Add const.
(This used to be commit 5371720971bc60a4cfba0460614306f322aa10b8)

21 years ago - Make ReadDirName return a const char*.
Andrew Bartlett [Sun, 16 Mar 2003 13:21:12 +0000 (13:21 +0000)]
 - Make ReadDirName return a const char*.

 - Consequential changes from that

 - mark our fstring/pstring assumptions in function prototypes

Andrew Bartlett
(This used to be commit fe2bc64bc439b27387b8f326b0f4f3bfcc3d04a1)

21 years agoTry to avoid dereferencing a null pointer.
Andrew Bartlett [Sun, 16 Mar 2003 13:16:42 +0000 (13:16 +0000)]
Try to avoid dereferencing a null pointer.

Andrew Bartlett
(This used to be commit 4e96585b60512905776c2c6692c76d45241f089d)

21 years agoNew statcache internals - this time it's actually possible to follow what's
Andrew Bartlett [Sun, 16 Mar 2003 13:15:29 +0000 (13:15 +0000)]
New statcache internals - this time it's actually possible to follow what's
going on.

In particular, add doxygen documentation.

Andrew Bartlett
(This used to be commit 7ff77ab46c63eca3b6edf18f39024eadb83a1a90)

21 years agoFix nmbd under -DDEVELOPER (pstrcpy on not-pstring).
Andrew Bartlett [Sun, 16 Mar 2003 03:21:58 +0000 (03:21 +0000)]
Fix nmbd under -DDEVELOPER (pstrcpy on not-pstring).

Make a new macro to help in this situation, and add memcpy() parinoia

Andrew Bartlett
(This used to be commit 4d00626b6e003952df6715fa80615ec028facdf4)

21 years agoChanges to help the kerberos change password code work on systems that
Andrew Bartlett [Sun, 16 Mar 2003 02:14:05 +0000 (02:14 +0000)]
Changes to help the kerberos change password code work on systems that
have some of the labels 'duplicated' (ie, the defines double-up).

Also, to an ads_connect() to try and find our KDC. (So we don't segfualt
*every* time)

Andrew Bartlett
(This used to be commit 56dce7ddad118051c93c62507234efca3920bc9b)

21 years agoMore work on my macro mess - we need function prototypes of different types,
Andrew Bartlett [Sun, 16 Mar 2003 00:39:40 +0000 (00:39 +0000)]
More work on my macro mess - we need function prototypes of different types,
and we were missing the 'char' type.

Andrew Bartlett
(This used to be commit 193e80fafbda9e3af58fec1e629ec607f29b4099)

21 years agoA hack to get us building on a slightly older heimdal kerberos. It appears
Andrew Bartlett [Sat, 15 Mar 2003 23:16:40 +0000 (23:16 +0000)]
A hack to get us building on a slightly older heimdal kerberos.  It appears
that we don't need this flag - heimdal's internal password change routines
don't set it.

Andrew Bartlett
(This used to be commit 069825bd78f2bf125e8a4e72933da924d393f5a5)

21 years agoFix non-gmake syntax error.
Andrew Bartlett [Sat, 15 Mar 2003 22:57:00 +0000 (22:57 +0000)]
Fix non-gmake syntax error.
(This used to be commit 97daece056516e52e56bf5a749676e7c53e087e3)

21 years agoCheckin cifs vfs for Linux mount helper
Steve French [Sat, 15 Mar 2003 22:35:47 +0000 (22:35 +0000)]
Checkin cifs vfs for Linux mount helper
(This used to be commit a55acfd7a296c5ae9b043dc03393a29d87e43a40)

21 years agoFix the 'non-optomizing compiler' case...
Andrew Bartlett [Sat, 15 Mar 2003 11:28:45 +0000 (11:28 +0000)]
Fix the 'non-optomizing compiler' case...

Andrew Bartlett
(This used to be commit 94424c5d72246b2e58f3a21aa0de6949d7eb2da1)

21 years agoFix the non-DEVELOPER case of my macro madness...
Andrew Bartlett [Sat, 15 Mar 2003 10:59:14 +0000 (10:59 +0000)]
Fix the non-DEVELOPER case of my macro madness...

Andrew Bartlett
(This used to be commit 618bda3a28f65417e3c31a70229f6da70cf223fc)

21 years agoMinor fixes.
Andrew Bartlett [Sat, 15 Mar 2003 08:18:29 +0000 (08:18 +0000)]
Minor fixes.
 - signed/unsigned
 - quieten warning about assignment as truth value
 - whitespace

Andrew Bartlett
(This used to be commit a13ce0df4b4a776fa635a1fb804dd00d195f58d0)

21 years agoRemove an unused function and fix the build.
Andrew Bartlett [Sat, 15 Mar 2003 08:03:11 +0000 (08:03 +0000)]
Remove an unused function and fix the build.

Andrew Bartlett
(This used to be commit 67a0319d268dfc0e2154d3ab0f8bf866e3cbb6db)

21 years agoFix signed/unsigned issues - mostly 'i' counters.
Andrew Bartlett [Sat, 15 Mar 2003 07:45:51 +0000 (07:45 +0000)]
Fix signed/unsigned issues - mostly 'i' counters.

Fix an inconpatible poitner type that caused the IA64 not to build

Andrew Bartlett
(This used to be commit 37436b0aae108fceace3049d3868510e1ba592ac)

21 years agosigned/unsigned fix
Andrew Bartlett [Sat, 15 Mar 2003 07:16:32 +0000 (07:16 +0000)]
signed/unsigned fix
(This used to be commit f6bcfa59447700e0ccfc069d0228019a9bdca9d2)

21 years agoString handling parinoia fixes.
Andrew Bartlett [Sat, 15 Mar 2003 07:14:55 +0000 (07:14 +0000)]
String handling parinoia fixes.

This patch enables the compile-time checking of strings assable by means of
sizeof().  (Original code had the configure check reversed).

This is extended to all safe_strcpy() users, push_string and pull_string,
as well as the cli and srv derivitives.  There is an attempt to cap strings
at the end of the cli buffer, and clobber_region() of the speified length
(when not -1 :-).

Becouse of the way they are declared, the 'overmalloc a string' users of
safe_strcpy() have been changed to use overmalloc_safe_strcpy() (which skips
some of the checks).

This whole ball of mud worked fine, until I pulled out my 'fix' for our
statcache.  When jeremy fixes that, we should be able to get back to testing
this stuff.

This patch also includes a 'marker' of the last caller to clobber_region (ie,
the function that called pstrcpy() that called clobber_region) to assist in
debugging problems that may have smashed the stack.  This is printed at
smb_panic() time.  (Original idea and patch by metze).

It also removes some unsused functions, and #if 0's some others that are
unused but probably should be used in the near future.

For now, this patch gives us some confidence on one class of trivial parsing
error in our code.

Andrew Bartlett
(This used to be commit 31f4827acc2a2f00399a5528fc83a0dae5cebaf4)

21 years agoFix off-by-one bug in safe_strcpy size paramater.
Andrew Bartlett [Sat, 15 Mar 2003 06:54:09 +0000 (06:54 +0000)]
Fix off-by-one bug in safe_strcpy size paramater.
(This used to be commit 9af30c9aae3623c4db1edca39a91973f0279acb4)

21 years agoTruncate the machinename manually, so as not to generate level 0 debugs for
Andrew Bartlett [Sat, 15 Mar 2003 06:53:37 +0000 (06:53 +0000)]
Truncate the machinename manually, so as not to generate level 0 debugs for
an expected situation.

Andrew Bartlett
(This used to be commit a07fccb7ae169c0b5089e3f7d2c5d6465b2e4686)

21 years agospecify the size of these buffers
Andrew Bartlett [Sat, 15 Mar 2003 06:51:57 +0000 (06:51 +0000)]
specify the size of these buffers
(This used to be commit f6ea572cd57d4e655d387fe225a5d7122d587a9b)

21 years agoIf the server went away, don't segfault by attempting to FD_SET -1.
Andrew Bartlett [Sat, 15 Mar 2003 06:50:45 +0000 (06:50 +0000)]
If the server went away, don't segfault by attempting to FD_SET -1.

Andrew Bartlett
(This used to be commit 4b1337ee94a19e39a2f4012c4dbc32a2e58cacf5)

21 years agoSpecify buffer sizes
Andrew Bartlett [Sat, 15 Mar 2003 06:46:43 +0000 (06:46 +0000)]
Specify buffer sizes
(This used to be commit aa12379b3fd9646199a8ff3f217ec7dfef1942a5)

21 years agoBe parinoid, malloc an extra SAFETY_MARGIN on the client's inbuf and outbuf.
Andrew Bartlett [Sat, 15 Mar 2003 06:46:05 +0000 (06:46 +0000)]
Be parinoid, malloc an extra SAFETY_MARGIN on the client's inbuf and outbuf.

Andrew Bartlett
(This used to be commit 2effcae13f9dfbff40b34d32c7fd82118c3fd096)

21 years agoclient-side smbpasswd fixes - use pstrcpy_base to avoid clobber_region bugs
Andrew Bartlett [Sat, 15 Mar 2003 06:45:19 +0000 (06:45 +0000)]
client-side smbpasswd fixes - use pstrcpy_base to avoid clobber_region bugs

Andrew Bartlett
(This used to be commit 7ab6559369b4e6ee3c5269d8cff04e5a39f6b493)

21 years agoAdd const, and a signed/unsigned fix.
Andrew Bartlett [Sat, 15 Mar 2003 06:43:37 +0000 (06:43 +0000)]
Add const, and a signed/unsigned fix.
(This used to be commit f07a93eaeba20f5704f43c7f02141adc564db136)

21 years agoIf it's an fstring, use fstrcpy().
Andrew Bartlett [Sat, 15 Mar 2003 06:42:44 +0000 (06:42 +0000)]
If it's an fstring, use fstrcpy().

Andrew Bartlett
(This used to be commit bf5e0698eed72d7fc005be08feb36ef82ada716c)

21 years agoClean up the VFS module loading logic by making the parameter an P_LIST,
Andrew Bartlett [Sat, 15 Mar 2003 06:41:31 +0000 (06:41 +0000)]
Clean up the VFS module loading logic by making the parameter an P_LIST,
rather than a runtime-parsed string.

Andrew Bartlett
(This used to be commit 3465cd6cd92c39c018979b5a82acbddca0927623)

21 years agoFound by my new checking code (yet to be commited):
Andrew Bartlett [Sat, 15 Mar 2003 06:34:32 +0000 (06:34 +0000)]
Found by my new checking code (yet to be commited):

Allow a service longer than 4 characters in CORE tcon.

Andrew Bartlett
(This used to be commit b56613c1cc13ebd5c9ba11a35d2f96c4c3eb0628)

21 years agostrictly, you can't #if on somthing that may or may not be defined.
Andrew Bartlett [Sat, 15 Mar 2003 06:31:23 +0000 (06:31 +0000)]
strictly, you can't #if on somthing that may or may not be defined.

Andrew Bartlett
(This used to be commit 49bae0227323e811cb71ada24928d24f7dc56d1f)

21 years agoNow that mimir has done the grunt work, I'll fix up the comment
Andrew Bartlett [Sat, 15 Mar 2003 06:10:48 +0000 (06:10 +0000)]
Now that mimir has done the grunt work, I'll fix up the comment
(This used to be commit 7154fe10969a34b97ddc8321bfb5271b8e6d4795)

21 years agofix WinXP & Win2K3 remote_arch and check pointer in ntlmssp code before dereferencing
Gerald Carter [Fri, 14 Mar 2003 23:11:19 +0000 (23:11 +0000)]
fix WinXP & Win2K3 remote_arch and check pointer in ntlmssp code before dereferencing
(This used to be commit 2487480228b99183cab9e34ab497997e0c144ed6)

21 years agofix WinXP & Win2K3 remote_arch and check pointer in ntlmssp code before dereferencing
Gerald Carter [Fri, 14 Mar 2003 23:06:06 +0000 (23:06 +0000)]
fix WinXP & Win2K3 remote_arch and check pointer in ntlmssp code before dereferencing
(This used to be commit 7bc5fc729f67ae16e09ea67efa9e2b8e2ba41c8f)

21 years agoWe haven't implemented The Singing Contexts so far.
Rafal Szczesniak [Fri, 14 Mar 2003 17:20:13 +0000 (17:20 +0000)]
We haven't implemented The Singing Contexts so far.
Who knows what .NET server brings, though ...?  ;-)

Rafal
(This used to be commit d81b0d26903004be6a99ac029dd531fd18947268)

21 years agoExtending code to work both in case of domain membership
Rafal Szczesniak [Fri, 14 Mar 2003 17:16:33 +0000 (17:16 +0000)]
Extending code to work both in case of domain membership
and domain controller respecting interdomain trust relationships.
In the latter case we need to find DC of remote domain instead
of ours. In the former 'domain' is our domain name.

Rafal
(This used to be commit 0cd45d5d3b3e3ec5a589c3ee9f0e369901eefe8f)

21 years agoFresh meat in trusted domains code:
Rafal Szczesniak [Fri, 14 Mar 2003 17:12:40 +0000 (17:12 +0000)]
Fresh meat in trusted domains code:
 - packing/unpacking utility functions for trusted domain
   password struct; can be used to prepare buffer to store
   in secrets.tdb or (soon) passdb backend
 - similiar functions for DOM_SID
 - respectively modified secrets_(fetch|store) routines
 - new auth mapping code utilising introduced is_trusted_domain
   function
 - added tdb (un)packing of single bytes

Rafal
(This used to be commit 5281ee7e84421b9be746aed2f1718ceaf2a2fe3d)

21 years ago/tmp/newfun.msg
Rafal Szczesniak [Fri, 14 Mar 2003 17:05:13 +0000 (17:05 +0000)]
/tmp/newfun.msg
(This used to be commit 3f4cb7b2c4d9b54b41bcc184ccfd00032e2b021b)

21 years agoFound by metze with the clobber-region check - if it's a pstring, use pstrcpy().
Andrew Bartlett [Fri, 14 Mar 2003 10:02:12 +0000 (10:02 +0000)]
Found by metze with the clobber-region check - if it's a pstring, use pstrcpy().

Andrew Bartlett
(This used to be commit f9c3c93f55cac774e576fd5975c0582e0b334d6a)

21 years agoAdd examples of ComfyChair
Martin Pool [Fri, 14 Mar 2003 04:54:10 +0000 (04:54 +0000)]
Add examples of ComfyChair
(This used to be commit dfee0a6ad5d203df04df8a54da87ff5e493a33ca)

21 years agoMerge from Subversion
Martin Pool [Fri, 14 Mar 2003 04:50:17 +0000 (04:50 +0000)]
Merge from Subversion

* Better report formatting
(This used to be commit e7eafa10da828b4dc46a05a99164eb8ac37563df)

21 years agoFix off by one bug noticed by Andrew Bartlett.
Jeremy Allison [Fri, 14 Mar 2003 02:10:26 +0000 (02:10 +0000)]
Fix off by one bug noticed by Andrew Bartlett.
Jeremy.
(This used to be commit 759aab9944e8dc5c38e224ace738b75ded07ee54)

21 years agoMerge more SGML strictness fixes from HEAD
Alexander Bokovoy [Thu, 13 Mar 2003 15:00:38 +0000 (15:00 +0000)]
Merge more SGML strictness fixes from HEAD
(This used to be commit af6235dfb69b5349e4d0b7c8772a1799b7dc421a)