obnox/samba-ctdb.git
15 years agoAllow DFS client paths to work when POSIX pathnames have been
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.

15 years agoFix bug #6196 - Unable to serve files with colons to Linux CIFS/VFS client
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.

15 years agoFix bug #6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb correctly.
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.

15 years agoMissing break in conversion function prevents tdb password database update.
Alexander Zagrebin [Tue, 17 Mar 2009 22:36:16 +0000 (15:36 -0700)]
Missing break in conversion function prevents tdb password database update.

15 years agoFix #6130: Don't crash in winbindd_rpc lookup_groupmem() on unmapped members
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

15 years agoFix a valgrind error
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

15 years agoFix a malloc/talloc mismatch when cli_initialise() fails
Volker Lendecke [Sun, 15 Mar 2009 10:58:07 +0000 (11:58 +0100)]
Fix a malloc/talloc mismatch when cli_initialise() fails

15 years agoFix #3954
Volker Lendecke [Sat, 14 Mar 2009 11:39:55 +0000 (12:39 +0100)]
Fix #3954

15 years agos3 torture: Fix unitialized variable to avoid closing a random fnum
Tim Prouty [Fri, 13 Mar 2009 00:08:54 +0000 (17:08 -0700)]
s3 torture: Fix unitialized variable to avoid closing a random fnum

15 years agoAdd simple POSIX open, mkdir and rmdir test.
Jeremy Allison [Thu, 12 Mar 2009 17:57:43 +0000 (10:57 -0700)]
Add simple POSIX open, mkdir and rmdir test.
Jeremy.

15 years agoFix bug #6186 - map readonly does not work
Jeremy Allison [Thu, 12 Mar 2009 17:56:09 +0000 (10:56 -0700)]
Fix bug #6186 - map readonly does not work
Jeremy.

15 years agoRevert "Fix a valgrind error / segfault in dns_register_smbd()"
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

15 years agopackaging(RHEL-CTDB): makerpms.sh: build winbind-32bit libs in the 64bit build
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

15 years agopackaging(RHEL-CTDB): Build winbind-32bit package in the 64bit build
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

15 years agopackaging(RHEL-CTDB): extend makespec.sh to extract VENDOR_PATCH from version.h
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

15 years agopackaging(RHEL-CTDB): The former release number has basically moved into VERSION
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

15 years agoadd generated packaging/RHEL-CTDB/samba.spec to .gitignore
Michael Adam [Thu, 19 Mar 2009 16:55:05 +0000 (17:55 +0100)]
add generated packaging/RHEL-CTDB/samba.spec to .gitignore

Michael

15 years agoVERSION: Set version to 3.3.2-ctdb-1
Michael Adam [Thu, 19 Mar 2009 16:08:16 +0000 (17:08 +0100)]
VERSION: Set version to 3.3.2-ctdb-1

Michael

15 years agoWHATSNEW: Update WHATSNEW.
Karolin Seeger [Thu, 12 Mar 2009 09:46:20 +0000 (10:46 +0100)]
WHATSNEW: Update WHATSNEW.

Karolin
(cherry picked from commit b41c0e965232a6f3c1cc2768ef39b6cf97d68634)

15 years agoFix #6167: winbindd -n should disable the winbind idmap cache
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)

15 years agoMake opt_nocache static to winbindd.c
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)

15 years agoVERSION: Raise version number up to 3.3.2.
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)

15 years agoWHATSNEW: Update changes.
Karolin Seeger [Wed, 11 Mar 2009 07:59:10 +0000 (08:59 +0100)]
WHATSNEW: Update changes.

Karolin
(cherry picked from commit eeaf0cb1572fff27df732714ddc192db2c8f9aff)

15 years agos3:signing: the seqnum should only be decremented by 1 for ntcancel requests
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)

15 years agoAdd a vfs_preopen module to hide fs latencies
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)

15 years agoDon't log NDR_PRINT_DEBUG at level 0, this always ends up in syslog
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)

15 years agoFix a valgrind error / segfault in dns_register_smbd()
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)

15 years agoWHATSNEW: Update changes.
Karolin Seeger [Tue, 10 Mar 2009 11:43:01 +0000 (12:43 +0100)]
WHATSNEW: Update changes.

Karolin
(cherry picked from commit 1067eae0ae6e7cef7419cc373b96aa0c2de9bb55)

15 years agofixed a bug in message handling for code the change notify code
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)

15 years agoWHATSNEW: Update changes since 3.3.1.
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)

15 years agos3/packaging: Fix typo in comment.
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)

15 years agos3/packaging: Package new files properly.
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)

15 years agos3:lib: interfaces.c isn't used in the configure tests anymore
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)

15 years agos3/WHATSNEW: Update changes since 3.3.0.
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)

15 years agoGet the sense of the integer wrap test the right way around. Sorry.
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)

15 years agoNow we're allowing a lower bound for auth_len, ensure we
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)

15 years agoFix bug #6161 - smbclient corrupts source path in tar mode
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)

15 years agoLast part of fix for #6154 - zfs does not honor admin users.
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)

15 years agoComplete the fix for bug 6100
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)

15 years agoFix bug #6160 - Office 2007 fails saving files to a Samba mapped drive.
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)

15 years agoSecond part of fix for #6154, ensure we return max access
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)

15 years agoFix bug #6154 - zfs does not honor admin users.
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)

15 years agoFix crashes when running RAW-ACLs against system with tdb ACL modules
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)

15 years agos3 passdb: Add back some useful debug statements
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)

15 years agoFix bug #6155 - "force group" is no longer working as expected.
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)

15 years agoIt appears that the first time we see a uid/gid that winbind can't map,
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)

15 years agoMore fix to initialize idmap statuses
Bo Yang [Tue, 3 Mar 2009 00:08:58 +0000 (16:08 -0800)]
More fix to initialize idmap statuses
(cherry picked from commit 3480224cef289ef0915787d735cd79adad4815fe)

15 years agos3/docs: Add missing full stop.
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)

15 years agoFix bug #6082 - smbd_gpfs_getacl failed: Windows client can´t rename or
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)

15 years agoInitialize the id_map status in idmap_ldap to avoid surprise
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)

15 years agos3: fix guest auth when winbindd is running
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)

15 years agoMake us pass the RAW-RENAME torture test I just added.
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)

15 years agoFix more POSIX path lstat calls. Fix bug where close can return
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)

15 years agoUse fsp->posix_open in preference if we have it.
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)

15 years agoEnsure ACL modules work with POSIX paths.
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)

15 years agoFix use of streams modules with CIFSFS client.
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)

15 years agoMake test for open modes more robust against other bits.
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)

15 years agoFix bug in processing of open modes in POSIX open.
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)

15 years agoFix some NetBSD warnings.
Jeremy Allison [Wed, 25 Feb 2009 18:00:01 +0000 (10:00 -0800)]
Fix some NetBSD warnings.
Jeremy.
(cherry picked from commit 8858ed261917ce6c80562f05f5407109d66bd6a8)

15 years agoFix bug 6124: Attempt to fix the build on IRIX
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)

15 years agoAllow set attributes on a stream fnum to be redirected to the base filename.
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)

15 years agoFix guest mounts
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)

15 years agoFix a bug that prevent core files from being created
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)

15 years agocifs mount did not properly display version string when no other parameters passed in.
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)

15 years agoMake char* parameters const
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)

15 years agoprefer gssapi header files from subdirectory
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)

15 years agoWHATSNEW: Update changes since 3.3.0.
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)

15 years agoMore warning fixes for Solaris.
Jeremy Allison [Tue, 24 Feb 2009 00:23:42 +0000 (16:23 -0800)]
More warning fixes for Solaris.
Jeremy.
(cherry picked from commit aea38950ff4865f1d791cd19619fadcd59eaf480)

15 years agoMore warning fixes for Solaris.
Jeremy Allison [Mon, 23 Feb 2009 23:42:52 +0000 (15:42 -0800)]
More warning fixes for Solaris.
Jeremy.
(cherry picked from commit 6306dd0cab617930176fdde91641344ef403429b)

15 years agoQuieten down a boatload of shadowed variable warnings on Solaris.
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)

15 years agoall BSDs use this evironment variable
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)

15 years agoVERSION: Raise version number.
Karolin Seeger [Mon, 23 Feb 2009 08:46:52 +0000 (09:46 +0100)]
VERSION: Raise version number.

Karolin
(cherry picked from commit e5f5284cc036217d20d5ca690e14d87ba0ebccaa)

15 years agoWHATSNEW: Updates changes since 3.3.0.
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)

15 years agos3/docs: Fix typo in man mount.cifs.
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)

15 years agoFor some unknown reason ldbrename was not being built in samba3.
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)

15 years agoChange smbc_set_credentials_with_fallback() (unreleased) to use
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)

15 years agoFix bug #6133 - Cannot delete non-ACL files on Solaris/ZFS/NFSv4 ACL filesystem.
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)

15 years agovariable grouping: just my OCD desire to keep similar things together
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)

15 years agoMake libsmbclient work with DFS
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)

15 years agos3/docs: Add hint about getfattr in man vfs_acl_xattr.
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)

15 years agos3/docs: Add man vfs_acl_tdb.
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)

15 years agos3/docs: Add man vfs_acl_xattr.
Karolin Seeger [Fri, 20 Feb 2009 12:32:22 +0000 (13:32 +0100)]
s3/docs: Add man vfs_acl_xattr.

Karolin
(cherry picked from commit 3b0114c0ba676dec2ece96983aff29257399f378)
(cherry picked from commit 7e3b9564af4ff2a9fa2de6a7ef2dd1ae16bc3d6a)

15 years agos3/docs: Fix several typos.
Karolin Seeger [Fri, 20 Feb 2009 08:20:16 +0000 (09:20 +0100)]
s3/docs: Fix several typos.

This fixes bug #6127.
Thanks to Justin T Pryzby <justinpryzby [at] users.sourceforge.net>
for the review!

Karolin
(cherry picked from commit 54dbb030e2c6fed0abd0a3a89d08dad9b8a201a1)
(cherry picked from commit a4548e41c6f12e4703249c53ad3dc727d2839931)

15 years agoWHATSNEW: Update changes since 3.3.0.
Karolin Seeger [Fri, 20 Feb 2009 07:58:58 +0000 (08:58 +0100)]
WHATSNEW: Update changes since 3.3.0.

Karolin
(cherry picked from commit ea6f99daeb6bb720ef0b0b1439a96d24e87973f2)

15 years agoFix printf warnings found on systems where time_t <> long int.
Jeremy Allison [Thu, 19 Feb 2009 21:36:45 +0000 (13:36 -0800)]
Fix printf warnings found on systems where time_t <> long int.
Jeremy.
(cherry picked from commit ea256b2d6d35327d63038554bf0a67d986c8e594)

15 years agoFix printf type warning.
Jeremy Allison [Thu, 19 Feb 2009 21:09:45 +0000 (13:09 -0800)]
Fix printf type warning.
Jeremy.
(cherry picked from commit aaba9a7b9a39bd899a748c45502fb8103c863eb9)

15 years agoFix a O(n^2) algorithm in regdb_fetch_keys()
Volker Lendecke [Thu, 19 Feb 2009 19:03:06 +0000 (20:03 +0100)]
Fix a O(n^2) algorithm in regdb_fetch_keys()
(cherry picked from commit d98c43982c56ef788144a3fd67cdd65a9f95f2be)

15 years agoBackport the semantics of when to delete alternate data streams on a file truncate.
Jeremy Allison [Thu, 19 Feb 2009 19:19:10 +0000 (11:19 -0800)]
Backport the semantics of when to delete alternate data streams on a file truncate.
Needed to fully support stream semantics.
Jeremy.
(cherry picked from commit 5a68f1e2c1fd16d315b1e303a90eb6475bbe7b15)

15 years agoFix a buffer handling bug when adding lots of registry keys
Volker Lendecke [Thu, 19 Feb 2009 13:16:44 +0000 (14:16 +0100)]
Fix a buffer handling bug when adding lots of registry keys

This is *ancient*... From 2002, and nobody noticed until someone added lots of
shares using net conf... :-)
(cherry picked from commit 36ae846d15027df5e3a02ffabb08183dad9f6517)
(cherry picked from commit 13f0a2903257677cc107f861e4ed2b58e52a1e21)

15 years agos3-libnet: fix coverity #848 (UNINIT).
Günther Deschner [Thu, 19 Feb 2009 01:35:20 +0000 (02:35 +0100)]
s3-libnet: fix coverity #848 (UNINIT).

Guenther
(cherry picked from commit e9d5405948e35a8eec0b49cc6c066278cb523397)
(cherry picked from commit 3d13df93f0ffaa518a576191a0715add878a7635)

15 years agoWHATSNEW: Jeremy fixed CID 602, not Volker.
Karolin Seeger [Thu, 19 Feb 2009 11:27:50 +0000 (12:27 +0100)]
WHATSNEW: Jeremy fixed CID 602, not Volker.

Thanks Volker for reading the release notes! ;-)

Karolin
(cherry picked from commit 6be9d9e33c4c6a9f25682b0716ca13392418d12e)

15 years agoWHATSNEW: Update changes since 3.3.0.
Karolin Seeger [Thu, 19 Feb 2009 09:07:40 +0000 (10:07 +0100)]
WHATSNEW: Update changes since 3.3.0.

Karolin
(cherry picked from commit 5af95977593a790e732bb3bf09ad7cc4832e663f)

15 years agoGah, typo :-(. Sorry.
Jeremy Allison [Thu, 19 Feb 2009 00:00:34 +0000 (16:00 -0800)]
Gah, typo :-(. Sorry.
(cherry picked from commit 88041d92ae2a619d5b4d4ad010ef7366b5c05c3f)

15 years agoFix coverity CID-602. Possible use of uninitialized var.
Jeremy Allison [Wed, 18 Feb 2009 23:43:03 +0000 (15:43 -0800)]
Fix coverity CID-602. Possible use of uninitialized var.
Jeremy.
(cherry picked from commit 43db14008eb660f1b1f21e1ff6dd2d340d1106ab)

15 years agoWHATSNEW: Update changes since 3.3.0.
Karolin Seeger [Wed, 18 Feb 2009 08:30:27 +0000 (09:30 +0100)]
WHATSNEW: Update changes since 3.3.0.

Karolin
(cherry picked from commit d45faf2706c88a6cb47404d119041bb69551a5c7)

15 years agoDon't miss an absolute pathname as a kerberos keytab path. From Glenn Machin <gmachin...
Jeremy Allison [Tue, 17 Feb 2009 23:55:36 +0000 (15:55 -0800)]
Don't miss an absolute pathname as a kerberos keytab path. From Glenn Machin <gmachin@sandia.gov>.
Jeremy.
(cherry picked from commit 8fd6dbcd5a61c48953974bf1880375b9dd1c88d6)

15 years agoFix bug #6117 - Samba 3.3.0: pdbedit -a core dumps.
Jeremy Allison [Tue, 17 Feb 2009 21:43:28 +0000 (13:43 -0800)]
Fix bug #6117 - Samba 3.3.0: pdbedit -a core dumps.
Jeremy.
(cherry picked from commit ca2c1eea4a766a3ee0d073520b19ce16f0586678)

15 years agos3: remove duplicate prototypes for generated rpc server functions.
Günther Deschner [Tue, 17 Feb 2009 14:42:06 +0000 (15:42 +0100)]
s3: remove duplicate prototypes for generated rpc server functions.

Guenther
(cherry picked from commit 6934180fd37417f7bf9b8b107d9cecea1b683720)

15 years agos3:make: use pidl/pidl for 'make idl'
Stefan Metzmacher [Tue, 17 Feb 2009 09:28:37 +0000 (10:28 +0100)]
s3:make: use pidl/pidl for 'make idl'

metze
(cherry picked from commit 3dc256ad0f1d2b1c131d67e033533dd316eab252)

15 years agofix proto.h after idl changes
Stefan Metzmacher [Tue, 17 Feb 2009 09:28:04 +0000 (10:28 +0100)]
fix proto.h after idl changes

metze
(cherry picked from commit 9d56f847b6fb88ab0529fdc6318dff5389c9d3db)