1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-29 11:21:54 +03:00
Commit Graph

20621 Commits

Author SHA1 Message Date
jelmer
8d1f54f45d Try to fix the build on some HPUX machines.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25875 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-09 09:27:03 +01:00
Jeremy Allison
7646f4b284 More pstring/fstring removal.
Jeremy.
2007-11-08 19:00:10 -08:00
Jeremy Allison
7a1de5b44e Remove more pstring/fstrings.
Jeremy.
2007-11-08 18:50:07 -08:00
Jeremy Allison
c21bc756e3 Remove unneeded variable.
Jeremy.
2007-11-08 18:01:00 -08:00
Jeremy Allison
ab8934844a Fix case where we have no dns domain name. Return a talloc of "".
Jeremy.
2007-11-08 17:58:55 -08:00
Jeremy Allison
2a0173743d Remove more fstring/pstring bad useage. Go talloc !
Jeremy.
2007-11-08 17:25:45 -08:00
Jeremy Allison
d9335456d2 Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test 2007-11-08 15:13:41 -08:00
Stefan Metzmacher
201800a4c9 sync the most parts of librpc/ndr with samba4
metze
2007-11-08 14:36:13 +01:00
Stefan Metzmacher
005909726e add '_PUBLIC_' prototypes into proto.h
this makes merging samba4 code easier...

metze
2007-11-08 14:34:02 +01:00
Stefan Metzmacher
cfbdb133b9 add win_errstr() as wrapper of dos_errstr().
this makes merging stuff from samba4 easier

metze
2007-11-08 14:33:04 +01:00
Stefan Metzmacher
9a201fd4c8 we should not ignore convert_string_talloc() failures.
In all other places in ndr_string.c we already use False...

metze
2007-11-08 13:52:56 +01:00
Stefan Metzmacher
130de20d64 libreplace: we need to link to make sure the functions are available
metze
2007-11-08 12:20:16 +01:00
Michael Adam
f3d7627375 Try to fix the build on systems without struct sockaddr_storage type
(like hape - HPUX 11.00).

Michael
2007-11-08 11:46:18 +01:00
Jeremy Allison
6bf053a6a1 Constrain "min receivefile size" to max of BUFFER_SIZE
(128k). Add debug error messages so we can see why
writeX large is denied. Ensure we don't allow recvfile
writes on IPC$.
Jeremy.
2007-11-07 21:47:00 -08:00
Michael Adam
e398a8d7b6 Try to fix the build on irix.
There were two callers of set_smb_read_error() in irix_oplocks.c
not converted to the new prototype.

Michael
2007-11-07 22:28:26 +01:00
Jeremy Allison
48e0725cd6 Unify the name and addr cache for client_name to
make threading easier ultimately.
Jeremy.
2007-11-07 12:48:58 -08:00
metze
a0d0a06a9e - check return value of ndr_push_set_switch_value()
- fix memory leaks in error pathes

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25798 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-07 12:13:09 +01:00
metze
55d01b3f5b use error and out logic
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25797 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-07 12:13:09 +01:00
metze
be1f2f1abf use NT_STATUS_HAVE_NO_MEMORY()
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25796 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-07 12:11:34 +01:00
metze
91ccaa8e70 use NDR_CHECK()
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25794 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-07 12:11:33 +01:00
metze
aa155b2c29 check the return value of ndr_push_set_switch_value()
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25793 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-07 12:11:33 +01:00
metze
f3dde8c7b7 use NT_STATUS_HAVE_NO_MEMORY() and NDR_CHECK()
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25792 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-07 12:11:32 +01:00
metze
1563a08cb0 the return value of ndr_pull_set_switch_value() should be checked
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25779 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-07 12:10:31 +01:00
metze
b542eaf825 use NT_STATUS_HAVE_NO_MEMORY() and NDR_CHECK() macros
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25778 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-07 12:10:30 +01:00
metze
52c422f4d7 add NDR_ERR_UNREAD_BYTES and don't use NTSTATUS directly
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25777 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-07 12:10:30 +01:00
metze
8ed241532a create ndr_pull_union_blob_all() and match the logic of the struct fns
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25774 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-07 12:10:29 +01:00
Jeremy Allison
c14db81be5 Fix tdbtorture build.
Jeremy.
2007-11-06 23:13:11 -08:00
Jeremy Allison
ecc2555197 Fix const warning.
Jeremy.
2007-11-06 23:09:31 -08:00
Jeremy Allison
ab11c00557 Keep the tdb code in sync with Samba4.
Mainly this is the svn changes :

------------------------------------------------------------------------
r23238 | tridge | 2007-05-30 01:15:49 -0700 (Wed, 30 May 2007) | 6 lines

merged transaction lock changes from ctdb

this ensures that having the global lock also implies the transaction
lock

------------------------------------------------------------------------
r22832 | tridge | 2007-05-13 18:00:06 -0700 (Sun, 13 May 2007) | 3 lines

merged the latest tdb changes from ctdb to Samba4

Jeremy.
2007-11-06 22:57:35 -08:00
Jeremy Allison
ef8da16983 Fix bug where tdb lock call interrupted with
an alarm sig would not terminate and could lead
to runaway smbd processes.
Thanks to Dave Daugherty @ Centrify for pointing
this out to us.
Jeremy.
2007-11-06 21:47:57 -08:00
Jeremy Allison
47640fb20e Ensure we don't use massive writes in pipe mode.
Jeremy.
2007-11-06 14:12:38 -08:00
Michael Adam
9dd18bb534 Move some access check functions that are not posix-acl specific
to a new source file of their own.

Michael
2007-11-06 19:32:10 +01:00
Michael Adam
c61b4222d3 Don't repeat fast-pathing...
Michael
2007-11-06 19:30:36 +01:00
Michael Adam
6f961a23de This is a proposed patch for Bug #5023.
The three can_* access check functions in smbd/posix_acls.c that are used in
smbd/open.c and smbd/nttrans.c explicitly called check_posix_acl_group_access()

This lead to errors with nfsv4 acls (ZFS and GPFS).

This changes the can_* functions to get the nt_acl via VFS layer and call
se_access_check on that. It also removes check_posix_acl_group_access()
which has no more callers.

NOTE: The can_* functions should really not be in smbd/posix_acls.c but
in a separate file (I propose smbd/access.c).

Michael
2007-11-06 19:26:53 +01:00
Michael Adam
7b582af210 Add a const.
Michael
2007-11-06 18:16:23 +01:00
metze
760f24f10c libreplace: we should only have one location where we check for required functions
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25864 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:59 +01:00
metze
20ec1f4725 libreplace: we need include <unistd.h> before nss_wrapper.h
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25863 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:59 +01:00
jelmer
4d02b1344b Fix export dynamic for HPUX.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25861 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:59 +01:00
jelmer
57bea8cd02 Remove flag that causes problems on some hosts.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25860 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:59 +01:00
jelmer
0ec1672929 Wrap native HPUX functions in dl implementation.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25859 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:58 +01:00
jelmer
9f862e9faf Check for HPUX dl functions.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25855 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:58 +01:00
jelmer
322cf8002b Move SHLIBEXT determination into a test as well.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25852 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:58 +01:00
jelmer
63b7690335 Move system-specific ldflags checks to libreplace so they can be used by ldb.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25851 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:58 +01:00
jelmer
48c70f6040 Add macro for picflag.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25850 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:58 +01:00
jelmer
4904af51cd Add configure test for -Wl,--export-dynamic.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25846 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:57 +01:00
metze
809fee4bef libreplace: include nss_wrapper.h if NSS_WRAPPER is defined
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25838 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-11-06 09:38:57 +01:00
Jeremy Allison
e1fcd851ab Ensure we null out the address correctly.
Jeremy.
2007-11-05 23:17:19 -08:00
Michael Adam
e2ffc6053d 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
2007-11-06 01:10:05 +01:00
Michael Adam
98225a0752 Fix a segfault.
Michael
2007-11-06 01:10:04 +01:00
Michael Adam
1f0fcc3e4e Try to fix the build. There was one forgotten caller
of receive_smb. Jeremy: please check!

Michael
2007-11-06 01:10:04 +01:00