1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

23609 Commits

Author SHA1 Message Date
Jeremy Allison
85b48d792f Ensure we null out the address correctly.
Jeremy.
(This used to be commit e1fcd851ab38165eb0e959cdc02ff067614f8b28)
2007-11-05 23:17:19 -08:00
Michael Adam
002060855f Fix another segfault and make smbfilter run again.
This fix is not complete yet (loop after "client closed connection")
but at least it starts again...

Micheal
(This used to be commit e2ffc6053dc9453fc49545db47374ed42e8efecd)
2007-11-06 01:10:05 +01:00
Michael Adam
251d755e90 Fix a segfault.
Michael
(This used to be commit 98225a075226e78f7ce64787dd29122fda3d6924)
2007-11-06 01:10:04 +01:00
Michael Adam
ea7bfdde72 Try to fix the build. There was one forgotten caller
of receive_smb. Jeremy: please check!

Michael
(This used to be commit 1f0fcc3e4ef7526cbf0a5a5fc96708238d0efdeb)
2007-11-06 01:10:04 +01:00
Günther Deschner
99d9993fdb When deleting a key from the registry make sure the non-default
security descriptor gets deleted as well.

Guenther
(This used to be commit d140d68537225b6a6a99be3d9b09354e3f6ad8c9)
2007-11-06 00:50:47 +01:00
Michael Adam
3fd2d4ed85 Add two const's.
Michael
(This used to be commit bf23c4ddff617dd3cd1e2d5cedb1b5c023356dc3)
2007-11-05 23:23:35 +01:00
Jeremy Allison
36441da424 Remove the horror that was the global smb_rw_error.
Each cli struct has it's own local copy of this variable,
so use that in client code. In the smbd server, add one
static to smbd/proccess.c and use that inside smbd. Fix
a bunch of places where smb_rw_error could be set by
calling read_data() in places where we weren't reading
from the SMB client socket (ie. winbindd).
Jeremy.
(This used to be commit 255c2adf7b6ef30932b5bb9f142ccef4a5d3d0db)
2007-11-05 11:12:56 -08:00
Michael Adam
8f13ba4568 Fix a typo.
Michael
(This used to be commit 5721a511d8dd327717bcd9c2053c4bd08f01185c)
2007-11-05 15:16:11 +01:00
Günther Deschner
515722c259 Ignore testing tdb.
Guenther
(This used to be commit 5bf02c6cdf6fc4596827755f7d659709adb0a7d6)
2007-11-05 13:35:05 +01:00
Jeremy Allison
536a9e7922 Don't alloc struct iface_struct nics[MAX_INTERFACES]; (128 entries)
on the stack - use talloc.
Jeremy
(This used to be commit b5e37af251a26648b0e4f59ca548c5374399175e)
2007-11-04 22:20:04 -08:00
Jeremy Allison
6a2a27076f This should really be a cond_set_smb_read_error().
Jeremy.
(This used to be commit 5ab76b58c00dde89b56060482f5cdc5d0c6c56cb)
2007-11-04 22:14:19 -08:00
Jeremy Allison
85ff0b2d75 Don't use 0 when we mean SMB_READ_OK.
Jeremy.
(This used to be commit 08ee4314a9e25700288f4ea1af22ee1732dfea61)
2007-11-04 22:12:31 -08:00
Günther Deschner
a7be4d50d4 Merge commit 'origin/v3-2-test' into branches/upstream
(This used to be commit d0bf0ad2ae9a2bff4cec8c7e801a22c624b874ae)
2007-11-05 03:39:18 +01:00
Volker Lendecke
2d73e86cce Remove unnecessary code
SAFE_FREE checks for NULL anyway, and SMB_STRDUP panics on failure
(This used to be commit 4cdebda39b9b1790fc5c7df3dc81bfb46b047ad7)
2007-11-05 03:40:31 +01:00
Volker Lendecke
082da3d287 Fix a debug message
(This used to be commit a86849e4f9512b680f26010c297cec14251dafdd)
2007-11-05 03:40:18 +01:00
Günther Deschner
e83e0f3684 Display sec ace flags.
Guenther
(This used to be commit 52bf835c5e9b2fa759c61bf4a7a364eeaeae6043)
2007-11-05 03:27:13 +01:00
Günther Deschner
fc22f295d0 Make sure we can read SACLs from the registry.
Guenther
(This used to be commit 62d4cce4562b77403f9353d333b9553352bdf1d8)
2007-11-05 03:26:01 +01:00
Volker Lendecke
002df2ae3b Fix the smbmount build
(This used to be commit 5b8ca7ebdef5d385420c89af246c2dae737c5717)
2007-11-05 03:18:52 +01:00
Volker Lendecke
33d8317571 static pstring removal
(This used to be commit 5490e2d77233f594a42cb32eda8215014db544e3)
2007-11-05 03:16:58 +01:00
Volker Lendecke
4c3040a4e8 pstring removal
(This used to be commit f5468d2c9abad41cb1e9d9b9ec6a1b56564961a4)
2007-11-05 03:16:48 +01:00
Volker Lendecke
ec1ecd92c9 Make load_registry_service return the share number
(This used to be commit 934964c90f39d588d2399f10e3738ab1b4e01290)
2007-11-05 02:45:14 +01:00
Jeremy Allison
58fbb512cc Forgot arg type.
Jeremy.
(This used to be commit 46f3b04ddea4c63c6b37c7038d4bbd2ee1c9ca0c)
2007-11-04 17:15:35 -08:00
Jeremy Allison
4721050df5 Don't believe len returned from read_smb_length_return_keepalive(),
it may be a UNIX large writeX (which wraps len in that case).
Stevef this should fix your 128k write bug.
Jeremy.
(This used to be commit de2ebffa3c99ed28a3868fd956ef45629ca855b6)
2007-11-04 15:38:43 -08:00
Jeremy Allison
5b0b4f23ef Remove most of the remaining globals out of lib/util_sock.c.
I have a plan for dealing with the remaining..... Watch
this space.
Jeremy.
(This used to be commit 963fc7685212689f02b3adcc05b4273ee5c382d4)
2007-11-03 23:20:10 -07:00
Jeremy Allison
51a0354d75 Remove more static data from lib/util_sock.c and
callers.
Jeremy.
(This used to be commit 35aaa36f82c70964cee5d0778eb04547b226dd3f)
2007-11-03 22:34:46 -07:00
Jeremy Allison
56aa420195 Missed one case where I need to pass down addrlen.
Jeremy
(This used to be commit 62b5ca3334598aec3304d21118f67702afc3854a)
2007-11-03 20:27:59 -07:00
Jeremy Allison
25074433f4 I can't get away without a 'length' arg. :-).
Jeremy.
(This used to be commit 95d01279a5def709d0a5d5ae7224d6286006d120)
2007-11-03 18:41:26 -07:00
Jeremy Allison
6658165d5e Stop get_peer_addr() and client_addr() from using global
statics. Part of my library cleanups.
Jeremy.
(This used to be commit e848506c858bd16706c1d7f6b4b032005512b8ac)
2007-11-03 18:15:45 -07:00
Jeremy Allison
73d4079680 Remove the smb_read_error global variable and replace
it with accessor functions. "One global or pstring a day...." :-).
Jeremy.
(This used to be commit d50d14c300abc83b7015718ec48acc8b3227a273)
2007-11-03 15:12:42 -07:00
Jeremy Allison
705ba0d5b5 Remove unused var noticed by metze.
Jeremy.
(This used to be commit ac4f897f0dec0e33e79c316340b47c2803104635)
2007-11-03 10:25:51 -07:00
Jeremy Allison
753983d7e7 Fix the snprintf checks, and fix a typo in pointer indirection.
These fixes are needed for a working getaddrinfo etc. replacement.
Fixes from Wayne Davison <wayned@samba.org> from rsync.
Jeremy.
(This used to be commit 494bf6293bedbda4b10aa2eae452377b8130cd01)
2007-11-02 14:23:10 -07:00
Jeremy Allison
a45c91ec6a Ensure we use the correct socklen_t values for bind() for
Solaris.
Jeremy.
(This used to be commit 638579d75a2aa00836dc4c0c772381b775944b16)
2007-11-02 14:22:19 -07:00
Jeremy Allison
6665739a16 Fix typos in calc_sa_size, noticed by jim.brown@miami.edu
Jeremy.
(This used to be commit 6b7ccd3efb05291f3b8779845a3842a09bb9aa07)
2007-11-02 12:56:21 -07:00
Jeremy Allison
329365684b Change the client library to write directly out of
the incoming buffer in the non-signed case. Speeds
up writes by over 10% or so. Complete the server
recvfile implementation.
Jeremy.
(This used to be commit 81ca5853b2475f123faab3b550f0a7b24ae3c208)
2007-11-02 12:21:34 -07:00
Jeremy Allison
f2a63dccab Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 319dfbaf1b8d08171731d4575127f4bb5255a229)
2007-11-02 12:06:15 -07:00
Jeremy Allison
b04312b75d Forgot one more getnameinfo.
Jeremy.
(This used to be commit 619e33248d12e764e902e4fdb5fb223cb9cfea3b)
2007-11-02 12:05:17 -07:00
Gerald (Jerry) Carter
8a33035038 Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test
(This used to be commit 95de80218c10a72c7b28541c3c2e475e083b68f1)
2007-11-02 14:16:40 -04:00
Gerald (Jerry) Carter
7bbdc00545 Fix build breakage when not specifying --with-fhs.
Ensure that CODEPAGEDIR, STATEDIR, and CACHEDIR have values.
(This used to be commit 10af752391be51c7381a4eaca27f29e1f2a677b3)
2007-11-02 14:16:06 -04:00
Jeremy Allison
414ab2ce46 Argggh. smblen doesn't include the +4, so my smb_doff calculations
shouldn't either :-).
Jeremy.
(This used to be commit c3de44b6b063e126095b30536fdcb643c70e395e)
2007-11-02 10:35:10 -07:00
Jeremy Allison
e075b3692b Fix Solaris by ensuring we use the IPv4 or IPv6 length
in any getnameinfo calls.
Jeremy
(This used to be commit 4d7badb0c44f287034f58d9a412e662c0fbecdc9)
2007-11-02 10:25:34 -07:00
Jeremy Allison
78cdd6e7ec Fix state_path to take a const string, not use pstring.
Jeremy.
(This used to be commit 8c73e19f51d6e3f520cf44dd22f9b9584d4b460f)
2007-11-02 09:27:04 -07:00
Jeremy Allison
10500184bf Ensure we can't accidently do a pipe write with
unread bytes in the socket buffer.
Jeremy
(This used to be commit 84d22f7747126608b9460f9591bb5967d871b82d)
2007-11-01 22:42:21 -07:00
Jeremy Allison
bece9609cd Be careful and take care of the correct lengths in large
writeX calls.
Jeremy.
(This used to be commit 2d3ff9c502105f92720131355b41e48be8d656c2)
2007-11-01 22:24:39 -07:00
Jeremy Allison
c94b2898cd Ensure we detect a large writeX when using recvfile.
More changes needed to make the UNIX_LARGE_WRITEX_CAP
writes work (I'll add these tomorrow).
Jeremy.
(This used to be commit 1c71546b6152d2930b98f766311bbd161ee0ee4e)
2007-11-01 21:51:45 -07:00
Gerald (Jerry) Carter
31286b302a Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test
(This used to be commit 779353b86d1699324149896f1ffa237c6ebe46ec)
2007-11-01 21:30:43 -04:00
Jeremy Allison
8bad80efb0 Add brackets so as not to break the POSIX caps return.
Jeremy.
(This used to be commit 47dbddcb5361caa30ee60cf4e15bb50d557d1191)
2007-11-01 18:30:02 -07:00
Volker Lendecke
0e073b8152 Fix for bug 5021
This is a different fix than the bug reporter (Evgeniy Dushistov
<dushistov at mail.ru>, thanks!) created, but it lives without the boolean
status variable. Untested so far, but I can not add attachments to bugs right
now. But to me this looks really obvious.
(This used to be commit b481abf5914dcafe5642c4d9394d02603e905bbb)
2007-11-01 13:59:35 -07:00
Gerald (Jerry) Carter
88ee61625a Patch 2 of 3 from Debian Samba packagers:
The point is doing the following associations:

- non discardable state data (all TDB files that may need to be backed
  up) go to statedir
- shared data (codepage stuff) go to codepagedir

The patch *does not change* the default location for these
directories. So, there is no behaviour change when applying it.

The main change is for samba developers who have to think when dealing
with files that previously pertained to libdir whether they:
- go in statedir
- go in codepagedir
- stay in libdir
(This used to be commit d6cdbfd875bb2653e831d314726c3240beb0a96b)
2007-11-01 15:53:44 -04:00
Volker Lendecke
456ca680f2 save memory
Hi!

Attached find a patch that I've wanted to check in for ages.
The whole area probably needs a major rewrite, but this is a
minimal patch that on a 32-bit box saves 1.5k per smbd per
defined share, twice as much on a 64-bit box.

Volker

From ebb80e664ecc49eb597a45cb57e1067fbae49e62 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl@sernet.de>
Date: Wed, 31 Oct 2007 15:04:34 +0100
Subject: [PATCH] Change global->copymap from bool* to a bitmap

We right now have 401 parameters, so with bool being represented as a 64-bit
integer this saves about 3k of memory per smbd per share that is defined in
smb.conf.
(This used to be commit 94f2c35a683eace7f9f3dad9748aaec93f7c534f)
2007-11-01 11:04:24 -07:00
Jeremy Allison
92d8a53b45 Add missing recvfile_bytes element - noticed by Kukks.
Jeremy.
(This used to be commit 5cf2811e8e1d9e6a1114bbdff89c333d5b374282)
2007-11-01 10:21:27 -07:00