Volker Lendecke [Sat, 21 Feb 2009 16:01:58 +0000 (17:01 +0100)]
Speed up "net conf list"
With 1000 shares in the registry, this changed the time of "net conf list" from
1.1 seconds to .6 seconds.
Signed-off-by: Michael Adam <obnox@samba.org>
Volker Lendecke [Mon, 2 Mar 2009 13:56:01 +0000 (14:56 +0100)]
Make use of gpfs_get_real_filename optional
Signed-off-by: Michael Adam <obnox@samba.org>
Michael Adam [Fri, 27 Feb 2009 14:28:52 +0000 (15:28 +0100)]
s3: Fix a memleak in dbwrap_rbt.
The SMB_MALLOC'ed rbt node data was not free'd on talloc free of
the db context. This is a quick fix using talloc instead of malloc
for allocation of the node data.
Since malloc was originally used for performance reasons, one
might want to reverse to malloc and create a talloc destructor
that walks the tree and frees all the node data if this talloc
approach proves to be too slow..
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
Stefan Metzmacher [Fri, 30 Jan 2009 13:36:48 +0000 (14:36 +0100)]
s3:smbconftort: don't use reserved words ('test:', 'failure:', 'success:')
Temporary results printfs should not contain reserved subunit words.
metze
Signed-off-by: Michael Adam <obnox@samba.org>
Michael Adam [Wed, 21 Jan 2009 17:25:47 +0000 (18:25 +0100)]
s3:libsmbconf: include smbconf headers with lib/smbconf prefix
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
Michael Adam [Wed, 21 Jan 2009 16:14:56 +0000 (17:14 +0100)]
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in txt backend
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
Michael Adam [Wed, 21 Jan 2009 16:12:50 +0000 (17:12 +0100)]
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf_init
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
Michael Adam [Wed, 21 Jan 2009 16:11:46 +0000 (17:11 +0100)]
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in testsuite
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
Michael Adam [Wed, 21 Jan 2009 16:11:02 +0000 (17:11 +0100)]
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf_util.c
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
Michael Adam [Wed, 21 Jan 2009 16:10:20 +0000 (17:10 +0100)]
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf.c
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
Michael Adam [Wed, 21 Jan 2009 15:59:09 +0000 (16:59 +0100)]
s3:libsmbconf: remove the init headers from smbconf.h
give the smbconf_init() dispatcher and the backends
(smbconf_reg and smbconf_txt) a header of their own each.
This allows to use the basic infrastructure and
single backends individually.
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
Michael Adam [Thu, 23 Oct 2008 22:00:20 +0000 (00:00 +0200)]
libsmbconf: create text config in smbconftort
Michael
Michael Adam [Thu, 23 Oct 2008 14:05:19 +0000 (16:05 +0200)]
libsmbconf: return WERR_BADFILE when no path to text backend is provided.
Michael
Michael Adam [Tue, 21 Oct 2008 21:20:57 +0000 (23:20 +0200)]
libsmbconf: fall back to file backend when no valid backend was found
Interpret the source string as a file name when it contains
a ':' sign but the initial part is not a known backend.
This might occur even implicitly when "%T" is used in an
include file name (even though this is not realistic..).
Michael
Michael Adam [Tue, 21 Oct 2008 21:20:31 +0000 (23:20 +0200)]
libsmbconf: fix comment typo.
Michael
Michael Adam [Mon, 20 Oct 2008 14:10:54 +0000 (16:10 +0200)]
libsmbconf: remove unused define.
Michael
Michael Adam [Wed, 21 Jan 2009 16:16:37 +0000 (17:16 +0100)]
s3:libsmbconf: use talloc_free instead of TALLOC_FREE in reg backend
Michael
Michael Adam [Thu, 23 Oct 2008 09:16:50 +0000 (11:16 +0200)]
libsmbconf: add method is_writeable() and wrapper smbconf_is_writeable()
This allows for per-config-source checking of write support.
Michael
Michael Adam [Mon, 20 Oct 2008 21:52:02 +0000 (23:52 +0200)]
libsmbconf: add backend_requires_messaging() method to libsmbconf.
In a clustered environment, the registry backend needs messaging
to be set up since ctdb requires this.
Michael
Jeremy Allison [Thu, 19 Mar 2009 03:54:13 +0000 (20:54 -0700)]
Allow DFS client paths to work when POSIX pathnames have been
selected (we need to path in pathname /that/look/like/this).
Jeremy.
Jeremy Allison [Thu, 19 Mar 2009 02:59:04 +0000 (19:59 -0700)]
Fix bug #6196 - Unable to serve files with colons to Linux CIFS/VFS client
Looks like the pathname parsing for POSIX paths got
broken when the code for doing Windows streams parsing got added.
Jeremy.
Jeremy Allison [Wed, 18 Mar 2009 21:31:56 +0000 (14:31 -0700)]
Fix bug #6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb correctly.
This is a really nasty one to fix as in order to successfully update the
passdb.tdb we must do the equivalent of a tdbbackup to move to the new hash
values before we do the upgrade.
Jeremy.
Alexander Zagrebin [Tue, 17 Mar 2009 22:36:16 +0000 (15:36 -0700)]
Missing break in conversion function prevents tdb password database update.
Volker Lendecke [Mon, 16 Mar 2009 12:17:04 +0000 (13:17 +0100)]
Fix #6130: Don't crash in winbindd_rpc lookup_groupmem() on unmapped members
Thanks to François Legal <devel@thom.fr.eu.org> for reporting this bug
Volker Lendecke [Tue, 17 Mar 2009 10:22:41 +0000 (11:22 +0100)]
Fix a valgrind error
Found in "make test" -- if we can't connect at all, "cli" is uninitialized
Volker Lendecke [Sun, 15 Mar 2009 10:58:07 +0000 (11:58 +0100)]
Fix a malloc/talloc mismatch when cli_initialise() fails
Volker Lendecke [Sat, 14 Mar 2009 11:39:55 +0000 (12:39 +0100)]
Fix #3954
Tim Prouty [Fri, 13 Mar 2009 00:08:54 +0000 (17:08 -0700)]
s3 torture: Fix unitialized variable to avoid closing a random fnum
Jeremy Allison [Thu, 12 Mar 2009 17:57:43 +0000 (10:57 -0700)]
Add simple POSIX open, mkdir and rmdir test.
Jeremy.
Jeremy Allison [Thu, 12 Mar 2009 17:56:09 +0000 (10:56 -0700)]
Fix bug #6186 - map readonly does not work
Jeremy.
Volker Lendecke [Tue, 10 Mar 2009 14:39:42 +0000 (15:39 +0100)]
Revert "Fix a valgrind error / segfault in dns_register_smbd()"
This reverts commit
e47d2091136c4d870bb91b8a84eb9f6fd78eb971.
No idea why, but this causes timeouts in the build farm all over the place
Michael Adam [Wed, 21 Jan 2009 08:49:12 +0000 (09:49 +0100)]
packaging(RHEL-CTDB): makerpms.sh: build winbind-32bit libs in the 64bit build
Michael
Michael Adam [Tue, 20 Jan 2009 18:47:28 +0000 (19:47 +0100)]
packaging(RHEL-CTDB): Build winbind-32bit package in the 64bit build
Michael
Michael Adam [Wed, 21 Jan 2009 10:03:34 +0000 (11:03 +0100)]
packaging(RHEL-CTDB): extend makespec.sh to extract VENDOR_PATCH from version.h
Michael
Michael Adam [Thu, 19 Mar 2009 16:57:11 +0000 (17:57 +0100)]
packaging(RHEL-CTDB): The former release number has basically moved into VERSION
Michael
Michael Adam [Thu, 19 Mar 2009 16:55:05 +0000 (17:55 +0100)]
add generated packaging/RHEL-CTDB/samba.spec to .gitignore
Michael
Michael Adam [Thu, 19 Mar 2009 16:08:16 +0000 (17:08 +0100)]
VERSION: Set version to 3.3.2-ctdb-1
Michael
Karolin Seeger [Thu, 12 Mar 2009 09:46:20 +0000 (10:46 +0100)]
WHATSNEW: Update WHATSNEW.
Karolin
(cherry picked from commit
b41c0e965232a6f3c1cc2768ef39b6cf97d68634)
Volker Lendecke [Mon, 9 Mar 2009 20:50:50 +0000 (21:50 +0100)]
Fix #6167: winbindd -n should disable the winbind idmap cache
(cherry picked from commit
1bdd91cfab96a478de39bd44c8c3362eedef7f36)
Volker Lendecke [Mon, 9 Mar 2009 20:46:59 +0000 (21:46 +0100)]
Make opt_nocache static to winbindd.c
(cherry picked from commit
9ad5e570625acc76fad7f5cb8134461662ba857a)
Karolin Seeger [Thu, 12 Mar 2009 07:31:33 +0000 (08:31 +0100)]
VERSION: Raise version number up to 3.3.2.
Karolin
(cherry picked from commit
9ba89785982bc5cadbd9aa723271157114745595)
Karolin Seeger [Wed, 11 Mar 2009 07:59:10 +0000 (08:59 +0100)]
WHATSNEW: Update changes.
Karolin
(cherry picked from commit
eeaf0cb1572fff27df732714ddc192db2c8f9aff)
Stefan Metzmacher [Tue, 10 Mar 2009 23:53:06 +0000 (16:53 -0700)]
s3:signing: the seqnum should only be decremented by 1 for ntcancel requests
[MS-SMB] 3.3.5.1 Receiving Any Message says that the seqnum
is incremented by only for ntcancel requests for any other
request it's by incremented by 2, even if it doesn't expect
a response.
metze
(cherry picked from commit
0999366b6b36f3084870af0375d686b0cbaae698)
Volker Lendecke [Sun, 23 Nov 2008 07:01:33 +0000 (08:01 +0100)]
Add a vfs_preopen module to hide fs latencies
(cherry picked from commit
c5e1900879411cf240ddb4c1dcb11e645cbcb03e)
Volker Lendecke [Sat, 14 Feb 2009 12:18:28 +0000 (13:18 +0100)]
Don't log NDR_PRINT_DEBUG at level 0, this always ends up in syslog
I think we eventually need to pass down the debuglevel here.
(cherry picked from commit
20086d0f4ac318f245bb48fc45999c9104ddccef)
Volker Lendecke [Tue, 10 Mar 2009 13:06:05 +0000 (14:06 +0100)]
Fix a valgrind error / segfault in dns_register_smbd()
(cherry picked from commit
4624451b7b78695b3f84e7fff91018ee9df0e589)
Karolin Seeger [Tue, 10 Mar 2009 11:43:01 +0000 (12:43 +0100)]
WHATSNEW: Update changes.
Karolin
(cherry picked from commit
1067eae0ae6e7cef7419cc373b96aa0c2de9bb55)
Andrew Tridgell [Tue, 10 Mar 2009 05:45:45 +0000 (16:45 +1100)]
fixed a bug in message handling for code the change notify code
The change notify code registered a separate message handler for each
tree connect. This registration uses the global messaging context.
The messaging code would consider a 2nd registration for the same
messaging type as being an 'update' of the handler, rather than a new
handler. It also would only call the first handler in the linked list
for a given message type when dispatching messages.
This patch changes the messaging code to allow for multiple
registrations of the same message type, and allow for multiple calls
to different messaging handler for one incoming message.
This fixes the problem with the test_notify_tcon() test that I
recently committed to the S4 smbtorture
(cherry picked from commit
89e340e09fbdc375c0aa85506add525b8ba5dcd0)
Karolin Seeger [Tue, 10 Mar 2009 10:31:52 +0000 (11:31 +0100)]
WHATSNEW: Update changes since 3.3.1.
Karolin
(cherry picked from commit
391a391a8bc57f59af627f676d2a507d46bd0832)
Karolin Seeger [Mon, 9 Mar 2009 15:16:20 +0000 (16:16 +0100)]
s3/packaging: Fix typo in comment.
Karolin
(cherry picked from commit
c666aef471174ca5d95afcc48924325e7caded14)
(cherry picked from commit
6dc12c482044597af41fb476624642d17e415858)
Karolin Seeger [Mon, 9 Mar 2009 15:01:30 +0000 (16:01 +0100)]
s3/packaging: Package new files properly.
That is part of the fix for bug #6144.
Thanks to Diego Remolina dijuremo [at] gatech [dot] edu for reporting!
Karolin
(cherry picked from commit
a60aaf214cd94cbd793018a59da3b0ac5263e5bb)
(cherry picked from commit
2e8c941edc21a00f8dbeb7d7782cbb536ab97b98)
Stefan Metzmacher [Mon, 9 Mar 2009 11:35:21 +0000 (12:35 +0100)]
s3:lib: interfaces.c isn't used in the configure tests anymore
libreplace always provides the getifaddr() function.
This fixes the build on sles8.
metze
(cherry picked from commit
1410490fe769bc79f98b4ab364685c7aed253e09)
(cherry picked from commit
bac96af2053996f28894458fce87e84c5c2356ff)
Karolin Seeger [Fri, 6 Mar 2009 08:00:58 +0000 (09:00 +0100)]
s3/WHATSNEW: Update changes since 3.3.0.
Karolin
(cherry picked from commit
ca623a7aa45b93c76e4c03ef041fb518c330ca3f)
Jeremy Allison [Fri, 6 Mar 2009 05:51:00 +0000 (21:51 -0800)]
Get the sense of the integer wrap test the right way around. Sorry.
Jeremy.
(cherry picked from commit
bbf72022b64a2ae207936f0208d3db2373a6d32b)
Jeremy Allison [Fri, 6 Mar 2009 05:04:52 +0000 (21:04 -0800)]
Now we're allowing a lower bound for auth_len, ensure we
also check for an upper one (integer wrap).
Jeremy.
(cherry picked from commit
acf2223f803c14c64a38f5218d823b8f8171e47f)
Jeremy Allison [Fri, 6 Mar 2009 01:17:52 +0000 (17:17 -0800)]
Fix bug #6161 - smbclient corrupts source path in tar mode
This was my fault. I broke the smbclient tar argument processing
in creating the string for chdir when removing pstrings.
Jeremy.
(cherry picked from commit
a9e6c91cd18b8b7b805f4b69f3867ea4bd6bc3ba)
Jeremy Allison [Thu, 5 Mar 2009 23:16:53 +0000 (15:16 -0800)]
Last part of fix for #6154 - zfs does not honor admin users.
Jeremy.
(cherry picked from commit
ddaa1bae7567c81fb8e478c439bb970edab2f9c3)
Volker Lendecke [Thu, 5 Mar 2009 21:20:55 +0000 (22:20 +0100)]
Complete the fix for bug 6100
According to [MS-RPCE].pdf, section 2.2.2.11:
----
A client or a server that (during composing of a PDU) has allocated more space
for the authentication token than the security provider fills in SHOULD fill in
the rest of the allocated space with zero octets. These zero octets are still
considered to belong to the authentication token part of the PDU.<36>
----
RPC implementations are allowed to send padding bytes at the end of an auth
footer. Windows 7 makes use of this.
Thanks to Nick Meier <nmeier@microsoft.com>
Volker
(cherry picked from commit
224364d6c9eaa4d07b57cdef04ac17acb416e413)
Jeremy Allison [Thu, 5 Mar 2009 17:03:48 +0000 (09:03 -0800)]
Fix bug #6160 - Office 2007 fails saving files to a Samba mapped drive.
Confirmed by reporters.
Jeremy.
(cherry picked from commit
2cc696192fbc66b10fa6377d84cdebd23a045284)
Jeremy Allison [Thu, 5 Mar 2009 01:18:12 +0000 (17:18 -0800)]
Second part of fix for #6154, ensure we return max access
if admin user.
Jeremy.
(cherry picked from commit
30d2017c7bb01adb5e9ce4bf84df845d676665de)
Jeremy Allison [Thu, 5 Mar 2009 00:56:45 +0000 (16:56 -0800)]
Fix bug #6154 - zfs does not honor admin users.
Jeremy.
(cherry picked from commit
a7efcb3666fe4df778df95449e98970a77369b79)
Jeremy Allison [Wed, 4 Mar 2009 22:47:44 +0000 (14:47 -0800)]
Fix crashes when running RAW-ACLs against system with tdb ACL modules
(caused by the POSIX pathname fixes).
Jeremy.
(cherry picked from commit
9809849d976597a0b1ed098ac5f9f353a98ca651)
Tim Prouty [Wed, 4 Mar 2009 00:47:48 +0000 (16:47 -0800)]
s3 passdb: Add back some useful debug statements
Originally removed in
be1dfff02d562e42a7847bd02fed8538630d3f41
(cherry picked from commit
784a9ae6fed4169b2e21608a1963a2b9af8c47fc)
Jeremy Allison [Wed, 4 Mar 2009 00:05:47 +0000 (16:05 -0800)]
Fix bug #6155 - "force group" is no longer working as expected.
We need to store the "force group" uid separately from the
conn->server_info token as we need to apply it separately also.
Volker PLEASE CHECK !
Jeremy.
(cherry picked from commit
da340c674d52d79cd4c45ab961a8fd7a204f7a67)
Dan Sledz [Tue, 3 Mar 2009 00:42:37 +0000 (16:42 -0800)]
It appears that the first time we see a uid/gid that winbind can't map,
we end up returning the null sid instead of falling back to the legacy
code. Next time through the code we'll hit the negative cache and do
the right thing, but we still fail the first time.
If we fail the winbind id to sid mapping, call the legacy version. This
catches the case where we don't have a negative cache entry for the mapping.
This is better than returning the NULL sid to the caller.
(cherry picked from commit
c4d05e8e1fc776dd9c528513346256cf35c9f226)
Bo Yang [Tue, 3 Mar 2009 00:08:58 +0000 (16:08 -0800)]
More fix to initialize idmap statuses
(cherry picked from commit
3480224cef289ef0915787d735cd79adad4815fe)
Karolin Seeger [Fri, 27 Feb 2009 10:09:59 +0000 (11:09 +0100)]
s3/docs: Add missing full stop.
Karolin
(cherry picked from commit
2ab9d365cfceb28c1280566b6fe8ec3767e18149)
(cherry picked from commit
aff67e24f3675ace3c69c210aa387bc008f1cbbc)
Jeremy Allison [Sat, 28 Feb 2009 21:14:54 +0000 (13:14 -0800)]
Fix bug #6082 - smbd_gpfs_getacl failed: Windows client can´t rename or
delete file (directory fix).
Jeremy.
(cherry picked from commit
fc5765f843fbbe0a8c9ae6be6dc7658033d539d3)
Bo Yang [Fri, 27 Feb 2009 18:34:47 +0000 (10:34 -0800)]
Initialize the id_map status in idmap_ldap to avoid surprise
(cherry picked from commit
13a13122f40221edd76aeaaff47c8964a692301a)
Steven Danneman [Fri, 27 Feb 2009 16:32:51 +0000 (08:32 -0800)]
s3: fix guest auth when winbindd is running
This fix is very subtle. If a server is configured with "security = share"
and "guest ok = yes" and winbindd is running authorization will fail during
tree connect.
This is due to our inability to map the guest sid S-1-5-21-X-501 to a uid
through sid_to_uid(). Winbindd is unaware of the hard coded mapping
between this sid and whatever uid the name in lp_guestaccount() is assigned.
So sid_to_uid() fails and we exit create_token_from_username() without
ever calling pdb_getsampwsid() which IS aware of the hard coded mapping.
This patch just reorganizes the code, moving sid_to_uid() down to the
block of code in which it is needed, avoiding this early failure.
(cherry picked from commit
fbf615dee95d13026fb9d092be8cf956c64eda75)
Jeremy Allison [Thu, 26 Feb 2009 19:43:07 +0000 (11:43 -0800)]
Make us pass the RAW-RENAME torture test I just added.
Inside a directory, keep a file open and then renaming
the directory should fail with ACCESS_DENIED.
Jeremy.
(cherry picked from commit
eb02b1e7fe98f826606d0129b1ba172b8645207a)
Jeremy Allison [Wed, 25 Feb 2009 22:56:49 +0000 (14:56 -0800)]
Fix more POSIX path lstat calls. Fix bug where close can return
failure if we have a pending modtime and the containing directory
of the file has been renamed (there is no POSIX "update time by
fd" call). This can't happen on Windows as the rename will fail
if there are open files beneath it. Will add a torture test
for this.
Jeremy.
(cherry picked from commit
032f052c9ccfb32f822352155e5f3c17a34f896a)
Jeremy Allison [Wed, 25 Feb 2009 22:50:43 +0000 (14:50 -0800)]
Use fsp->posix_open in preference if we have it.
Jeremy.
(cherry picked from commit
2b5b5bed41320f1890c69c714c7596e1a7a1b964)
Jeremy Allison [Wed, 25 Feb 2009 22:12:31 +0000 (14:12 -0800)]
Ensure ACL modules work with POSIX paths.
Jeremy.
(cherry picked from commit
6d5bf226e91eaa7405103f2c32b5d5a310fa35eb)
Jeremy Allison [Wed, 25 Feb 2009 21:46:46 +0000 (13:46 -0800)]
Fix use of streams modules with CIFSFS client.
Jeremy.
(cherry picked from commit
0c8b8f2f3483a585d974ce803357f1d9f39e3c9f)
Jeremy Allison [Wed, 25 Feb 2009 21:00:21 +0000 (13:00 -0800)]
Make test for open modes more robust against other bits.
Jeremy.
(cherry picked from commit
8d178837f259757340a09a688ed194e3e4a92c36)
Jeremy Allison [Wed, 25 Feb 2009 20:54:58 +0000 (12:54 -0800)]
Fix bug in processing of open modes in POSIX open.
Was missing case of "If file exists open. If file doesn't exist error."
Damn damn damn. CIFSFS client will have to have fallback cases
for this error for a long time.
Jeremy.
(cherry picked from commit
b652082648c49b525d2b2ce619b575ee75bc242e)
Jeremy Allison [Wed, 25 Feb 2009 18:00:01 +0000 (10:00 -0800)]
Fix some NetBSD warnings.
Jeremy.
(cherry picked from commit
8858ed261917ce6c80562f05f5407109d66bd6a8)
Volker Lendecke [Thu, 2 Oct 2008 01:37:52 +0000 (03:37 +0200)]
Fix bug 6124: Attempt to fix the build on IRIX
Under irix, "sa_family" is a #define to sa_union.sa_generic.sa_family2
(cherry picked from commit
7fea973c6a204f422d92c2abf1d40d3558808696)
Jeremy Allison [Wed, 25 Feb 2009 01:58:14 +0000 (17:58 -0800)]
Allow set attributes on a stream fnum to be redirected to the base filename.
Fixes the new RAW-STREAMS torture test.
Jeremy.
(cherry picked from commit
3c01f93b4cf4f4dec41511bae622736f1ade3b0f)
Steve French [Tue, 24 Feb 2009 23:07:12 +0000 (17:07 -0600)]
Fix guest mounts
guest session setup, login (user id) as anonymous.
This patch is for samba bugzilla bug 4640.
Signed-off-by: Shirish Pargaonkar <shirishp@us.ibm.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@samba.org>
(cherry picked from commit
dc2f9854c400a9bde604a8c3ababb29fb3e9747f)
Tim Prouty [Tue, 24 Feb 2009 22:07:29 +0000 (14:07 -0800)]
Fix a bug that prevent core files from being created
Removed an erroneous free() that was causing the corepath to be NULL
during dump_core(). This prevented dump_core() from actually calling
abort() to create a core file. The bug was introduced in December by:
0994b094569474d47e7b98e39438829e962a27e1
(cherry picked from commit
a70bb435d339df52eef56fb0c5788534252d7ab7)
Steve French [Tue, 24 Feb 2009 18:43:12 +0000 (12:43 -0600)]
cifs mount did not properly display version string when no other parameters passed in.
Acked-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit
c7bf0f4c222ae46be2a751997e03197832b494cd)
Derrell Lipman [Tue, 24 Feb 2009 14:49:21 +0000 (09:49 -0500)]
Make char* parameters const
- Use const in function signatures whenever appropriate, to help prevent
errant scribbling on users' buffers. smbc_set_credentials() always acted as
if its formal parameters were const char *, and changing the formal
declaration to specify that should not cause any change to the ABI. It is
still allowable to pass a writable buffer to a function which specifies that
it will not write to the buffer.
Derrell
(cherry picked from commit
53fea3a7aef481151c3a15d01481cb0f11ae2e8b)
Björn Jacke [Sun, 22 Feb 2009 18:46:40 +0000 (19:46 +0100)]
prefer gssapi header files from subdirectory
this fixes some compile time noise on FreeBSD 7
(cherry picked from commit
1bfdbb093f7c5e434ea3e653d389e1ccec578af6)
Karolin Seeger [Tue, 24 Feb 2009 07:37:27 +0000 (08:37 +0100)]
WHATSNEW: Update changes since 3.3.0.
Karolin
(cherry picked from commit
4f4a15f4c1f4f2f72f3f651b102938c48ac7ab5b)
Jeremy Allison [Tue, 24 Feb 2009 00:23:42 +0000 (16:23 -0800)]
More warning fixes for Solaris.
Jeremy.
(cherry picked from commit
aea38950ff4865f1d791cd19619fadcd59eaf480)
Jeremy Allison [Mon, 23 Feb 2009 23:42:52 +0000 (15:42 -0800)]
More warning fixes for Solaris.
Jeremy.
(cherry picked from commit
6306dd0cab617930176fdde91641344ef403429b)
Jeremy Allison [Mon, 23 Feb 2009 23:02:52 +0000 (15:02 -0800)]
Quieten down a boatload of shadowed variable warnings on Solaris.
Makes real problems easier to spot.
Jeremy.
(cherry picked from commit
d32b6d5afd6437544c0fc42681351552d89907dc)
Björn Jacke [Sat, 21 Feb 2009 23:43:38 +0000 (00:43 +0100)]
all BSDs use this evironment variable
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit
cd6ae0de52164dd6f50b3614f2511acb3eb15993)
(cherry picked from commit
1ad5f50bdab761c7d3894e94f8fe3b171ec1b219)
Karolin Seeger [Mon, 23 Feb 2009 08:46:52 +0000 (09:46 +0100)]
VERSION: Raise version number.
Karolin
(cherry picked from commit
e5f5284cc036217d20d5ca690e14d87ba0ebccaa)
Karolin Seeger [Mon, 23 Feb 2009 08:44:08 +0000 (09:44 +0100)]
WHATSNEW: Updates changes since 3.3.0.
Karolin
(cherry picked from commit
ded44fa523a5d964d0c31a1dac8cdc563d41fc15)
Karolin Seeger [Mon, 23 Feb 2009 08:24:50 +0000 (09:24 +0100)]
s3/docs: Fix typo in man mount.cifs.
Thanks to Tobias Stoeckmann for reporting!
Karolin
(cherry picked from commit
09a7f93f6be66a8f2a124e49b4effe2b5863f01d)
(cherry picked from commit
fdb5c65fc51784b6a159748ec4df3953b7d2c1cb)
Simo Sorce [Sun, 22 Feb 2009 06:06:28 +0000 (01:06 -0500)]
For some unknown reason ldbrename was not being built in samba3.
(cherry picked from commit
b8fa66be1cbad021143653d4e79f04d79a01bd62)
Jeremy Allison [Sat, 21 Feb 2009 00:40:00 +0000 (16:40 -0800)]
Change smbc_set_credentials_with_fallback() (unreleased) to use
const approptiately.
Jeremy.
(cherry picked from commit
07c7085f25718915cda07e38a87a008a72abbf4f)
Jeremy Allison [Fri, 20 Feb 2009 16:22:57 +0000 (08:22 -0800)]
Fix bug #6133 - Cannot delete non-ACL files on Solaris/ZFS/NFSv4 ACL filesystem.
As the NFSv4 ACL mapping code doesn't map write directory into the DELETE_CHILD
permission bit (which we require before allowing a delete) no one can delete
files without an explicit DELETE_CHILD bit set on the directory. Add this mapping.
Jeremy.
(cherry picked from commit
7df63394aff2a15d96112378a9e3b0acd9edc56a)
Derrell Lipman [Fri, 20 Feb 2009 15:03:55 +0000 (10:03 -0500)]
variable grouping: just my OCD desire to keep similar things together
(cherry picked from commit
f84fd046fcff6c3310ef595fb3e4cbe774703d2a)
Bo Yang [Fri, 20 Feb 2009 04:21:52 +0000 (12:21 +0800)]
Make libsmbclient work with DFS
Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
(cherry picked from commit
8457e7bba4ef2ba479340829bb89a3a8772f958b)
Karolin Seeger [Fri, 20 Feb 2009 13:14:54 +0000 (14:14 +0100)]
s3/docs: Add hint about getfattr in man vfs_acl_xattr.
Karolin
(cherry picked from commit
27307be0f726c899c0e8a0edfdf200650037bb61)
(cherry picked from commit
8c978a66168fd22c817e0710d7a70daf7d07b1ab)
Karolin Seeger [Fri, 20 Feb 2009 12:32:44 +0000 (13:32 +0100)]
s3/docs: Add man vfs_acl_tdb.
Karolin
(cherry picked from commit
0fd1d4c0906158bab55871d53396bdc7ae533220)
(cherry picked from commit
b6c900db66481f10d9acbc7fc6a3cbf6b537b486)