Tim Potter
2e20359a8a
Start of a unit test for info3 caching. Much unfrastructure required
...
before this can be fully implemented. )-:
(This used to be commit a040a8471f884cb295100f841594d86ddf754bb6)
2003-03-18 01:32:51 +00:00
Andrew Bartlett
e0e31ca14a
Add copyright.
...
(This used to be commit a7f9c3657ff052e382e290059f50f1d9812b8221)
2003-03-17 22:22:46 +00:00
Volker Lendecke
0a8e719a4b
Fix memory leak.
...
Volker
(This used to be commit e8975d6e7bdcceb78a83a3446cf1430e1e3f1a72)
2003-03-17 22:09:06 +00:00
Tim Potter
4adde4c850
Added a slightly modified version of Tridge's note about securing
...
a Samba server.
(This used to be commit 03a227b7ee7ed6927541966ec226344cd8c88aff)
2003-03-17 11:03:29 +00:00
Tim Potter
9349b44ea7
Run autoconf. Shouldn't we have an autogen.sh here?
...
(This used to be commit a43fe8e5f0cc95a8fb89db4ab1ee051b8c9d1bab)
2003-03-17 11:02:54 +00:00
Andrew Bartlett
a9034ec179
Fix invalid SAFE_FREE() of talloc()ed memory.
...
Andrew Bartlett
(This used to be commit 21add5f97d0d112094e34a02e6319991a1d2af4d)
2003-03-17 10:59:11 +00:00
Andrew Bartlett
99e5d02f74
Brain fart - make sure we truncate the right string...
...
Andrew Bartlett
(This used to be commit 32eb2cdca62a784d96207507e273bbbf77b0c6c3)
2003-03-17 10:58:05 +00:00
Tim Potter
63c1aa25cf
Call AC_MSG_ERROR if jw, perl or htmldoc is not installed rather than
...
generate a bodgy Makefile.
(This used to be commit 2842e0925debe8bfabfdf011913cf5e13e824c10)
2003-03-17 10:26:44 +00:00
Andrew Bartlett
0273df0bf7
Fix const warnings.
...
Andrew Bartlett
(This used to be commit fc1408d5d1a8b64dfd20268ab6f4a5f2a007614b)
2003-03-17 09:18:06 +00:00
Andrew Bartlett
1331a361bd
Add const.
...
(This used to be commit 02f81719c7c179b61663bdf789c01ab62286fea2)
2003-03-17 09:08:34 +00:00
Andrew Bartlett
a564fed756
More statcache fixes - and add a bit more doco.
...
Andrew Bartlett
(This used to be commit 0e8dd52f6973ac5219e2c2dd53824de71f512083)
2003-03-17 08:03:08 +00:00
Tim Potter
1eae003fef
Applied waider's patch to return DOS error codes for pipes that
...
support it.
(This used to be commit ac3df9a8051bd105e8e4192d36b3024fdf9f9506)
2003-03-17 05:55:41 +00:00
Tim Potter
355bea4b2c
Ignore .pyc files.
...
(This used to be commit b20a357ac534b513383ad20046a99bb7f39bba25)
2003-03-17 05:46:54 +00:00
Andrew Bartlett
0ab29d6186
Fix a memory leak - 'smbcontrol smbd pool-usage' is your freind!
...
Andrew Bartlett
(This used to be commit a12e8524997e329a4f4cd766d6371e384698795a)
2003-03-17 04:42:57 +00:00
Tim Potter
077e093d8a
Some cosmetic changes to make the popt --usage output look nicer.
...
(This used to be commit 39124b9a62e1ba0f8089c36b27d6c79352a27973)
2003-03-17 03:56:58 +00:00
Andrew Bartlett
1171b0c9ac
Fix memory leaks and add parinoioa code to our stat() cache.
...
Andrew Bartlett
(This used to be commit 3fd07bd25eefdb2a7a6891fa1169ab2425607249)
2003-03-17 03:47:15 +00:00
Andrew Bartlett
3ecf5d6638
Missed one when I move 'share_sanity_checks' to use an fstring for 'dev'.
...
Andrew Bartlett
(This used to be commit a0208a4f74f9c61eb1e346d9cb62dbe00ef4c24a)
2003-03-16 22:07:36 +00:00
Andrew Bartlett
7b18c5d164
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)
2003-03-16 13:24:36 +00:00
Andrew Bartlett
c6cf087741
Add const.
...
(This used to be commit 5371720971bc60a4cfba0460614306f322aa10b8)
2003-03-16 13:23:12 +00:00
Andrew Bartlett
400bb4bfab
- 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)
2003-03-16 13:21:12 +00:00
Andrew Bartlett
644ab8e9b1
Try to avoid dereferencing a null pointer.
...
Andrew Bartlett
(This used to be commit 4e96585b60512905776c2c6692c76d45241f089d)
2003-03-16 13:16:42 +00:00
Andrew Bartlett
6ba75b540f
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)
2003-03-16 13:15:29 +00:00
Andrew Bartlett
7cf0003dd2
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)
2003-03-16 03:21:58 +00:00
Andrew Bartlett
2f62a72d9a
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)
2003-03-16 02:14:05 +00:00
Andrew Bartlett
3a9bdacca9
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)
2003-03-16 00:39:40 +00:00
Andrew Bartlett
0dca6fab27
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)
2003-03-15 23:16:40 +00:00
Andrew Bartlett
4b6b03e183
Fix non-gmake syntax error.
...
(This used to be commit 97daece056516e52e56bf5a749676e7c53e087e3)
2003-03-15 22:57:00 +00:00
Steve French
2055e724ad
Checkin cifs vfs for Linux mount helper
...
(This used to be commit a55acfd7a296c5ae9b043dc03393a29d87e43a40)
2003-03-15 22:35:47 +00:00
Andrew Bartlett
a4261c2295
Fix the 'non-optomizing compiler' case...
...
Andrew Bartlett
(This used to be commit 94424c5d72246b2e58f3a21aa0de6949d7eb2da1)
2003-03-15 11:28:45 +00:00
Andrew Bartlett
662b549818
Fix the non-DEVELOPER case of my macro madness...
...
Andrew Bartlett
(This used to be commit 618bda3a28f65417e3c31a70229f6da70cf223fc)
2003-03-15 10:59:14 +00:00
Andrew Bartlett
02704f9733
Minor fixes.
...
- signed/unsigned
- quieten warning about assignment as truth value
- whitespace
Andrew Bartlett
(This used to be commit a13ce0df4b4a776fa635a1fb804dd00d195f58d0)
2003-03-15 08:18:29 +00:00
Andrew Bartlett
f1d333ea35
Remove an unused function and fix the build.
...
Andrew Bartlett
(This used to be commit 67a0319d268dfc0e2154d3ab0f8bf866e3cbb6db)
2003-03-15 08:03:11 +00:00
Andrew Bartlett
a27d434c4b
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)
2003-03-15 07:45:51 +00:00
Andrew Bartlett
d8549b0360
signed/unsigned fix
...
(This used to be commit f6bcfa59447700e0ccfc069d0228019a9bdca9d2)
2003-03-15 07:16:32 +00:00
Andrew Bartlett
3b5bc93e9d
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)
2003-03-15 07:14:55 +00:00
Andrew Bartlett
9a00acc472
Fix off-by-one bug in safe_strcpy size paramater.
...
(This used to be commit 9af30c9aae3623c4db1edca39a91973f0279acb4)
2003-03-15 06:54:09 +00:00
Andrew Bartlett
32ae87014c
Truncate the machinename manually, so as not to generate level 0 debugs for
...
an expected situation.
Andrew Bartlett
(This used to be commit a07fccb7ae169c0b5089e3f7d2c5d6465b2e4686)
2003-03-15 06:53:37 +00:00
Andrew Bartlett
eca1293fad
specify the size of these buffers
...
(This used to be commit f6ea572cd57d4e655d387fe225a5d7122d587a9b)
2003-03-15 06:51:57 +00:00
Andrew Bartlett
58abc7b5b6
If the server went away, don't segfault by attempting to FD_SET -1.
...
Andrew Bartlett
(This used to be commit 4b1337ee94a19e39a2f4012c4dbc32a2e58cacf5)
2003-03-15 06:50:45 +00:00
Andrew Bartlett
a4ba049684
Specify buffer sizes
...
(This used to be commit aa12379b3fd9646199a8ff3f217ec7dfef1942a5)
2003-03-15 06:46:43 +00:00
Andrew Bartlett
dc7c505dec
Be parinoid, malloc an extra SAFETY_MARGIN on the client's inbuf and outbuf.
...
Andrew Bartlett
(This used to be commit 2effcae13f9dfbff40b34d32c7fd82118c3fd096)
2003-03-15 06:46:05 +00:00
Andrew Bartlett
16ec110b0f
client-side smbpasswd fixes - use pstrcpy_base to avoid clobber_region bugs
...
Andrew Bartlett
(This used to be commit 7ab6559369b4e6ee3c5269d8cff04e5a39f6b493)
2003-03-15 06:45:19 +00:00
Andrew Bartlett
6fe590983b
Add const, and a signed/unsigned fix.
...
(This used to be commit f07a93eaeba20f5704f43c7f02141adc564db136)
2003-03-15 06:43:37 +00:00
Andrew Bartlett
d21f97a25d
If it's an fstring, use fstrcpy().
...
Andrew Bartlett
(This used to be commit bf5e0698eed72d7fc005be08feb36ef82ada716c)
2003-03-15 06:42:44 +00:00
Andrew Bartlett
44f9f1042c
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)
2003-03-15 06:41:31 +00:00
Andrew Bartlett
c3221b8377
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)
2003-03-15 06:34:32 +00:00
Andrew Bartlett
ef07127b30
strictly, you can't #if on somthing that may or may not be defined.
...
Andrew Bartlett
(This used to be commit 49bae0227323e811cb71ada24928d24f7dc56d1f)
2003-03-15 06:31:23 +00:00
Andrew Bartlett
dadae3bdd2
Now that mimir has done the grunt work, I'll fix up the comment
...
(This used to be commit 7154fe10969a34b97ddc8321bfb5271b8e6d4795)
2003-03-15 06:10:48 +00:00
Gerald Carter
7ae555c43c
fix WinXP & Win2K3 remote_arch and check pointer in ntlmssp code before dereferencing
...
(This used to be commit 2487480228b99183cab9e34ab497997e0c144ed6)
2003-03-14 23:11:19 +00:00
Rafal Szczesniak
9db9982cd3
We haven't implemented The Singing Contexts so far.
...
Who knows what .NET server brings, though ...? ;-)
Rafal
(This used to be commit d81b0d26903004be6a99ac029dd531fd18947268)
2003-03-14 17:20:13 +00:00