1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-21 18:04:06 +03:00

20706 Commits

Author SHA1 Message Date
Volker Lendecke
428e663100 Add stackframes to public libsmbclient functions
As we use talloc_tos() in inner libsmbclient/ functions more and more, we need
to make sure not to create memleaks by not free'ing talloc stackframes. This
patch wraps all calls in libsmbclient.c that are publically exported into a
talloc_stackframe()/talloc_free() pair.

Jeremy, Derrell, can you check this?

Thanks,

Volker
(This used to be commit db9fa472a89eb78a7b1f7cabcf195331c3b448d9)
2007-11-19 16:42:03 -08:00
Jeremy Allison
9a41314ce8 Remove pstring from nmbd.
Jeremy.
(This used to be commit a317f70c229f7730279eaa323f7ebfd499257f76)
2007-11-19 15:15:09 -08:00
Karolin Seeger
551f9e7a6c Add error message to net rap file and net rap file user
(This used to be commit 759d6bcbec07434667ab8dd9a09f37fbe243c208)
2007-11-19 16:42:27 +01:00
Volker Lendecke
815aec8241 Add a comment
(This used to be commit 144014096a41de293ce7ec15f82681a469dd3aa1)
2007-11-18 15:08:54 -08:00
Volker Lendecke
3546d5c099 Fix a valgrind error
(This used to be commit b82120f9b7f5aad83d8b4ece0261e9693eedca0c)
2007-11-18 15:08:52 -08:00
James Peach
f8b9e720b2 Detect Heimdal Kerberos on OpenBSD 4.2.
Patch from Sean McCreary <samba-technical@mcwest.org>.
(This used to be commit 8b0bee7c7688a966777f502c97922d7ad40d841c)
2007-11-18 13:56:19 -08:00
Jeremy Allison
8829875944 Remove pstring from modules directory.
Jeremy.
(This used to be commit 977dc3accb3d440e5fd19591c425da7dc3718d94)
2007-11-16 17:07:11 -08:00
Jeremy Allison
b059e2cbf1 Ensure we use PATH_MAX for symlinks.
Jeremy.
(This used to be commit a90ef69350c5efcf8dcf95d4853cbe3c662d1ba3)
2007-11-16 17:06:57 -08:00
Jeremy Allison
0cfad17e4a Fix bug #4393 smbclient does not store files with zero filesize in tar-archives
from tometzky@batory.org.pl.
Jeremy.
(This used to be commit f3bd5e828af04f33178a66f9f332199f7d395b7b)
2007-11-16 17:06:36 -08:00
Jeremy Allison
1e03d348ca Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 01e85f146b32d3ec91f2affb070bfd3516a28333)
2007-11-16 13:29:42 -08:00
Michael Adam
5267c9d2e6 Fix for bug #4781: allow cleaning of /etc/mtab by canonicalizing mountpoint.
Canonicalize mountpoint by trimming trailing slashes before unmounting.
This allows for correct cleanup of /etc/mtab after unmounting.

Thanks to Steve Langasek <vorlon@debian.org>.

Michael
(This used to be commit 118fd6213d5f6419f654e9226a41d527c04346f7)
2007-11-16 22:26:26 +01:00
Michael Adam
b3976c2ea2 Fix an implicit cast warning.
Michael
(This used to be commit d2c7417393e58de12b5747b9d6c19aea3c343ea5)
2007-11-16 22:22:05 +01:00
Jeremy Allison
6ff701e695 Match the 3.0.27a version of this function.
Jeremy.
(This used to be commit 629406cbe77a5d56a258ac414ab47f3e89183e52)
2007-11-16 13:14:24 -08:00
Jeremy Allison
acb829ecc3 Add MAX_DNS_NAME_LENGTH, remove more pstrings.
Jeremy.
(This used to be commit a1725f4ff7ed375808c78ac661b539557748d0a5)
2007-11-15 18:27:26 -08:00
Jeremy Allison
c261545449 Fix bug noticed by kukks <linux@kukkukk.com> where
ip list didn't match namelist added to subnetdb.
Could cause bogus IP addresses to be reported for
the __SAMBA__ name.
Jeremy.
(This used to be commit ad9f14b6dcb05e8fa68b51ff26ff40fc445a4631)
2007-11-15 17:59:12 -08:00
Michael Adam
6028176a39 Fix the build on RHEL5, when libcap-devel is installed.
The /usr/include/sys/capability.h defines _LINUX_TYPES_H
which prevents /usr/include/linux/types.h from being parsed
(when included afterwards). Thus certain types are undefined
that are for instance needed in /usr/include/linux/dqblk_xfs.h.
This breaks the build of lib/sysquotas_xfs.c.

This commit adds a configure check and a workaround for this.

Michael
(This used to be commit 11bcdf780e164659b89a66e24edc27e89da7619a)
2007-11-16 00:45:59 +01:00
Michael Adam
3f437f681a Fix an implicit cast warning.
Michael
(This used to be commit 4ab3b23a630e822e3fdf1ab4d08330625b0e4fb6)
2007-11-16 00:45:59 +01:00
Jeremy Allison
68be9a8200 More pstring removal. This one was tricky. I had to add
one horror (pstring_clean_name()) which will have to
remain until I've removed all pstrings from the client code.
Jeremy.
(This used to be commit 1ea3ac80146b83c2522b69e7747c823366a2b47d)
2007-11-15 14:19:52 -08:00
Jeremy Allison
8e1b0f81c2 alpha_strcpy includes the space for the terminating nul.
Jeremy.
(This used to be commit b3ed3f7e4e40c4f78d4c347411c75de81979455f)
2007-11-15 13:18:42 -08:00
Gerald (Jerry) Carter
d41713b107 Fix for CVE-2007-5398.
== Subject:     Remote code execution in Samba's WINS
==              server daemon (nmbd) when processing name
==              registration followed name query requests.
==
== CVE ID#:     CVE-2007-5398
==
== Versions:    Samba 3.0.0 - 3.0.26a (inclusive)
...
Secunia Research reported a vulnerability that allows for
the execution of arbitrary code in nmbd.  This defect may
only be exploited when the "wins support" parameter has
been enabled in smb.conf.
(This used to be commit e40c372e0ddf631dd9162c1fdfaaa49c29915f23)
2007-11-15 10:57:31 -06:00
Michael Adam
c45970529c Fix bug #5083 (and duplicate bug #5084).
Make solarisacl_sys_acl_get_fd() return a result
when there is one (thereby fixing a memleak).

Thanks to Markus Zell for reporting this.

Michael
(This used to be commit 242fc0099cc81877d8e9630b46dfb8d4a3265d94)
2007-11-15 11:08:53 +01:00
Jeremy Allison
51b46147f2 Remove smbldap_get_single_pstring() and all pstrings
from pdb_ldap.c. I don't have an LDAP passdb setup here,
so I'm going to need some help on testing this.
Jeremy.
(This used to be commit 00760451b6c2b65f3a8a9187789ca4f270b622a2)
2007-11-14 16:05:42 -08:00
Jeremy Allison
d07eabcb44 Remove pstring from auth/*
Jeremy.
(This used to be commit 72c19d114b40ee307bbe45d9828667165a26d7a3)
2007-11-14 10:37:18 -08:00
Jeremy Allison
7a3ece4145 Remove pstring from param/
This was a little tricky..... I'll watch the
build farm.
Jeremy.
(This used to be commit d6e2519c67fd015e1089021769de04085fd90894)
2007-11-13 18:42:42 -08:00
Jeremy Allison
e2eaf24f7b Remove all pstring from groupdb/
Jeremy.
(This used to be commit 6959c5c7e3e95604c66788b86d5789757e18cc36)
2007-11-13 15:00:48 -08:00
Michael Adam
8ab992524a Fix potential orphaned open files.
Calling can_access_file could lead to orphaned open files
when SMB_VFS_GET_NT_ACL returned ENOSYS (not implemented).

Michael
(This used to be commit f4f700cf0c1657c36e801fab20fe7b1a4efcb714)
2007-11-13 23:26:38 +01:00
Jeremy Allison
052efa9a33 Remove last pstring from smbd/*.c
Jeremy.
(This used to be commit f1680bada913af4eaf5c0d686983018d6c8b3e5f)
2007-11-13 12:51:31 -08:00
Michael Adam
b2f942cfe2 Fix build of the zfs_acl module.
There was one caller of smb_get_nt_acl_nfs4() forgotten
in the change of return value.

Michael
(This used to be commit 4d3e84a3b3a39d3d2c9b86affa16c8124b1496e5)
2007-11-13 15:50:14 +01:00
Michael Adam
7559fc08c2 Fix the build: correct prototype.
Adapt prototype of smb_get_nt_acl_nfs4() in the header file, too.

Michael
(This used to be commit a2949fd7a567ba3357024c9e4a8429733009dde4)
2007-11-13 15:49:40 +01:00
Volker Lendecke
15953b82eb Make [f]get_nt_acl return NTSTATUS
(This used to be commit dcbe1bf942d017a3cd5084c6ef605a13912f795b)
2007-11-13 15:47:01 +01:00
Jeremy Allison
9441d1ba87 More pstring removal from smbd/*.c
Jeremy.
(This used to be commit 01663c2312467ceebeb2e2fb1aa432ad96c626e5)
2007-11-12 18:12:26 -08:00
Jeremy Allison
d5791deefa Remove pstrings from lanman.c
Jeremy.
(This used to be commit 7bfd25c75602e25da73710261a54da8e0feea133)
2007-11-12 17:59:18 -08:00
Jeremy Allison
79266500cd Remove all pstrings from smbd/chgpasswd.c.
Jeremy.
(This used to be commit eaf14c701b08e9eff5b94bf57af68cb29142d7fc)
2007-11-12 15:02:50 -08:00
Jeremy Allison
86558e0376 Fix bug #5073. Allow "delete readonly = yes" to correctly
override deletion of a file. Fix from David Shaw <dshaw@jabberwocky.com>
Jeremy.
(This used to be commit 5d1d650d192d4782421b5c3c2be1b632d4318279)
2007-11-12 11:39:35 -08:00
Jeremy Allison
d068bc64b6 Three more pstring removals.
Jeremy.
(This used to be commit c15819b75751a1e15cfed2ef94dae10ee72d769c)
2007-11-11 21:46:52 -08:00
Jeremy Allison
91c1933e67 Remove a pstring.
Jeremy.
(This used to be commit c0412b5d13546f388b615a073e82e7730e01d731)
2007-11-11 21:45:55 -08:00
Volker Lendecke
6069670f1b Some pstring removal
Hi!

Feel free to push :-)

Volker

From 7fae6b3709a973bd0a5a13d3f5c880c61d5e35de Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl@sernet.de>
Date: Sun, 11 Nov 2007 15:28:59 +0100
Subject: [PATCH] Remove some static pstrings
(This used to be commit c3a66b4ee97a902c5cf43c3bb145541849a029ed)
2007-11-11 21:34:40 -08:00
Volker Lendecke
7e9d639ed1 Cosmetic fix
Do directory vs file open before entering open_file_stat
(This used to be commit cd62122916defbfb57468c3b82a60b766fc4652e)
2007-11-11 23:45:02 +01:00
Jeremy Allison
a084eae039 Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit b9d79fb509a6c59fdd73b016be5f4da3435c7789)
2007-11-11 13:18:22 -08:00
Volker Lendecke
63d141d4e8 Remove a static fstring
Feel free to push :-)

Volker
(This used to be commit f213556f50de4a28b5c5d2e1e762013837feb722)
2007-11-11 13:16:58 -08:00
Volker Lendecke
50d9b94f6f Remove a static fstring
I'm not sure why this used to be static, to me it seems that every time this
variable is overwritten. I just don't see how name_status_find() could return
true and not overwrite name. Can someone please review this and potentially
check it in?

Thanks,

Volker
(This used to be commit 329c688e4a9e69b71996fd1b0eee2202a849f3f5)
2007-11-11 13:14:06 -08:00
Volker Lendecke
f976f5e067 Convert ctdb_conn.c to enum ndr_error_code
Fix the build
(This used to be commit 432d0e9cb2370e52f7d4cb58d2da747e526403e8)
2007-11-11 09:12:37 +01:00
Volker Lendecke
c046a2f527 Add ndr_errstr
(This used to be commit e3b36073f1fc994b102a5bdf321b9dd519288420)
2007-11-11 09:12:30 +01:00
Jeremy Allison
2b3c44e4fb Always define PATH_MAX. Makes code simpler (removes
a bunch of #defines). Remove pstring from msdfs.c.
Jeremy.
(This used to be commit e203ba22275320808bc11b17361ad1f2d5b0b897)
2007-11-10 22:31:34 -08:00
Jeremy Allison
41ae2a0a17 Remove last pstring from sesssetup.c
Jeremy.
(This used to be commit 9ed12bfc48fe7f9b1863a9dd88e881974083053c)
2007-11-10 15:36:47 -08:00
Jeremy Allison
54d65bfb9a Fix the build when realpath doesn't take null
as a last arg.
Jeremy.
(This used to be commit 63125225383f512f43002b9a92569d4b8f1b63bd)
2007-11-10 15:02:08 -08:00
Jeremy Allison
acc0218f13 Remove pstring from service.c.
Jeremy.
(This used to be commit cdd9e5cc8366cf0be4dc31f793fc0e5be6f63c3e)
2007-11-10 14:43:39 -08:00
Jeremy Allison
6c25260ec1 Remove more static fstring/pstrings. Fix socket option
set on wrong fd (-1).
Jeremy.
(This used to be commit 52fe04df8e8c08126afe61d509fc1d3cb676e327)
2007-11-09 15:09:16 -08:00
Stefan Metzmacher
f9578af966 ndr: change NTSTAUS into enum ndr_err_code (samba3 callers)
lib/messages_local.c
rpc_client/ndr.c
smbd/notify_internal.c
utils/net_rpc_registry.c

metze
(This used to be commit c2645d2164c05976a98bafed980b6029baf89977)
2007-11-09 21:23:16 +01:00
metze
5290ea864e ndr: change NTSTAUS into enum ndr_err_code (ndrdump)
librpc/tools/ndrdump.c

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25919 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 95530073de6d5b112391312bed373229af1824b0)
2007-11-09 21:23:16 +01:00