samba.git
16 years agoRestrict the enctypes in the generated krb5.conf files to Win2003 types.
Gerald W. Carter [Mon, 28 Jan 2008 17:32:09 +0000 (11:32 -0600)]
Restrict the enctypes in the generated krb5.conf files to Win2003 types.

This fixes the failure observed on FC8 when joining a Windows 2008 RC1
domain.  We currently do not handle user session keys correctly
when the KDC uses AES in the ticket replies.

16 years agoWe need to leave the corepath around
Volker Lendecke [Sun, 27 Jan 2008 09:22:42 +0000 (10:22 +0100)]
We need to leave the corepath around

In case we need to dump core, in line 191 we dereference corepath to be able to
chdir there.

Jeremy, please check!

Volker

16 years agoAdding missing calls to va_end().
Tim Potter [Sun, 27 Jan 2008 06:31:56 +0000 (17:31 +1100)]
Adding missing calls to va_end().

Just a small commit to get a handle on this git thingy.  This patch
fixes some missing calls to va_end() to match various calls to va_start()
and VA_COPY().

Tim.

16 years agoRemove an unused external reference
Volker Lendecke [Sat, 26 Jan 2008 23:35:14 +0000 (00:35 +0100)]
Remove an unused external reference

16 years agoFix uninitialized variables
Volker Lendecke [Sat, 26 Jan 2008 20:29:18 +0000 (21:29 +0100)]
Fix uninitialized variables

Thanks to Corinna Vinschen

16 years agoAdd cmd_netlogon_dsr_getforesttrustinfo and deregisterdnsrecords to rpcclient.
Günther Deschner [Fri, 25 Jan 2008 20:21:33 +0000 (21:21 +0100)]
Add cmd_netlogon_dsr_getforesttrustinfo and deregisterdnsrecords to rpcclient.

Guenther

16 years agoRemove hand-written rpccli_netlogon_dsr_getdcnameex[2].
Günther Deschner [Fri, 25 Jan 2008 20:19:39 +0000 (21:19 +0100)]
Remove hand-written rpccli_netlogon_dsr_getdcnameex[2].

Guenther

16 years agoUse rpccli_netr_DsRGetDCNameEx and rpccli_netr_DsRGetDCNameEx2 in rpcclient.
Günther Deschner [Fri, 25 Jan 2008 20:17:44 +0000 (21:17 +0100)]
Use rpccli_netr_DsRGetDCNameEx and rpccli_netr_DsRGetDCNameEx2 in rpcclient.

Guenther

16 years agoRe-run make idl.
Günther Deschner [Fri, 25 Jan 2008 20:15:36 +0000 (21:15 +0100)]
Re-run make idl.

Couldn't we move on doing this during the build??

Guenther

16 years agoFix netr_DsRGetDCNameEx and netr_DsRGetDCNameEx2 IDL.
Günther Deschner [Fri, 25 Jan 2008 20:12:42 +0000 (21:12 +0100)]
Fix netr_DsRGetDCNameEx and netr_DsRGetDCNameEx2 IDL.

Guenther

16 years agoAdd IDL for netr_DsrDeregisterDNSHostRecords (just for completion).
Günther Deschner [Fri, 25 Jan 2008 16:43:15 +0000 (17:43 +0100)]
Add IDL for netr_DsrDeregisterDNSHostRecords (just for completion).

Guenther

16 years agoFix bogus uninitialized variable warnings
Volker Lendecke [Fri, 25 Jan 2008 20:20:39 +0000 (21:20 +0100)]
Fix bogus uninitialized variable warnings

16 years agoFix Coverity IDs 451, 452
Volker Lendecke [Fri, 25 Jan 2008 10:13:19 +0000 (11:13 +0100)]
Fix Coverity IDs 451, 452

16 years agoTiny simplification
Volker Lendecke [Fri, 25 Jan 2008 08:28:19 +0000 (09:28 +0100)]
Tiny simplification

16 years agoRemove a pointless while loop
Volker Lendecke [Fri, 25 Jan 2008 08:21:44 +0000 (09:21 +0100)]
Remove a pointless while loop

16 years agoAttempt to fix the build on OpenBSD
Volker Lendecke [Fri, 25 Jan 2008 19:52:20 +0000 (20:52 +0100)]
Attempt to fix the build on OpenBSD

Thanks to metze for pointing this out

16 years agoAlways trust the domain flags in the wcache trusted domain cache.
Gerald W. Carter [Fri, 25 Jan 2008 18:21:14 +0000 (12:21 -0600)]
Always trust the domain flags in the wcache trusted domain cache.

Use the flags stored in the tdb when determining if a domain can
be contacted.  The tdb should be considered authoratative anyways unless
you know the flags in the winbindd_domain are correct (such as when
first enumerating trusts).

Original suggestion and patch from Steven Danneman <steven.danneman@isilon.com>.
Manually rewritten by me for 3.2.

16 years agoUse the correct domain name when looking up the trust password.
Gerald W. Carter [Fri, 25 Jan 2008 18:18:05 +0000 (12:18 -0600)]
Use the correct domain name when looking up the trust password.

On a DC, we always use the domain name given.  On a domain member,
we use lp_workgroup().  This fixes a bug supporting trusted domains.

16 years agoRemove more unused LSA marshalling functions.
Günther Deschner [Fri, 25 Jan 2008 15:57:55 +0000 (16:57 +0100)]
Remove more unused LSA marshalling functions.

Guenther

16 years agoRemove some unused structures from rpc_lsa.h.
Günther Deschner [Fri, 25 Jan 2008 15:40:51 +0000 (16:40 +0100)]
Remove some unused structures from rpc_lsa.h.

Guenther

16 years agoAdd cmd_netlogon_dsr_enumtrustdom() to rpcclient.
Günther Deschner [Fri, 25 Jan 2008 15:35:09 +0000 (16:35 +0100)]
Add cmd_netlogon_dsr_enumtrustdom() to rpcclient.

Guenther

16 years agorun "make idl".
Günther Deschner [Fri, 25 Jan 2008 15:33:36 +0000 (16:33 +0100)]
run "make idl".

Guenther

16 years agoFix netr_DsrEnumerateDomainTrusts IDL.
Günther Deschner [Fri, 25 Jan 2008 15:20:47 +0000 (16:20 +0100)]
Fix netr_DsrEnumerateDomainTrusts IDL.

Guenther

16 years agoAdd LIBNETAPI_LOCAL_SERVER() macro.
Günther Deschner [Fri, 25 Jan 2008 14:46:11 +0000 (15:46 +0100)]
Add LIBNETAPI_LOCAL_SERVER() macro.

Guenther

16 years agoNo need to close registry on libnetapi_free() anymore.
Günther Deschner [Fri, 25 Jan 2008 14:45:38 +0000 (15:45 +0100)]
No need to close registry on libnetapi_free() anymore.

Guenther

16 years agoFix winbindd_can_contact_domain() on a samba DC.
Michael Adam [Fri, 25 Jan 2008 15:40:17 +0000 (16:40 +0100)]
Fix winbindd_can_contact_domain() on a samba DC.

The check for inbound trusts is invalid when samba is a DC
and has a trust with an active directory domain.

This effectively prevented tusts with an AD domain on a
samba DC from working (unless using "winbindd rpc only"),
because an ads_connect() was never performed. Only the
rpc-based winbindd methods were working properly.

Jerry: Please check!

Michael

16 years agoUse generated DSSETUP client & server rpc functions and remove the hand-written ones.
Günther Deschner [Fri, 25 Jan 2008 12:26:10 +0000 (13:26 +0100)]
Use generated DSSETUP client & server rpc functions and remove the hand-written ones.

Guenther

16 years agoAdd generated dssetup code after make idl.
Günther Deschner [Fri, 25 Jan 2008 12:04:58 +0000 (13:04 +0100)]
Add generated dssetup code after make idl.

Guenther

16 years agoAdding dssetup.idl from samba4.
Günther Deschner [Fri, 25 Jan 2008 12:03:03 +0000 (13:03 +0100)]
Adding dssetup.idl from samba4.

Guenther

16 years agoRemove rpccli_samr_get_dom_pwinfo() and rpccli_samr_get_usrdom_pwinfo().
Günther Deschner [Fri, 25 Jan 2008 00:26:27 +0000 (01:26 +0100)]
Remove rpccli_samr_get_dom_pwinfo() and rpccli_samr_get_usrdom_pwinfo().

Guenther

16 years agoFix the same bug with user -> user_obj.
Jeremy Allison [Fri, 25 Jan 2008 02:22:43 +0000 (18:22 -0800)]
Fix the same bug with user -> user_obj.
Jeremy.

16 years agoFix a really subtle old, old bug :-). When canonicalizing the
Jeremy Allison [Fri, 25 Jan 2008 02:13:22 +0000 (18:13 -0800)]
Fix a really subtle old, old bug :-). When canonicalizing the
NT ACL into a POSIX one, if the group being set is the primary group
of the file, map it into a SMB_ACL_GROUP_OBJ, not a SMB_ACL_GROUP.
Otherwise we get an extra bogus group entry in the POSIX ACL.
Jeremy.

16 years agoCorrectly set flags in ACE's inherited from parent. Still one bug
Jeremy Allison [Fri, 25 Jan 2008 01:50:07 +0000 (17:50 -0800)]
Correctly set flags in ACE's inherited from parent. Still one bug
left to find then I'll back-port to 3.0.28.
Jeremy.

16 years agoFix missing error check that caused crash when winbindd not running.
Jeremy Allison [Fri, 25 Jan 2008 01:40:35 +0000 (17:40 -0800)]
Fix missing error check that caused crash when winbindd not running.
Jeremy.

16 years agoFix lookup_sids to detect unix_groups and unix_users domain sids.
Michael Adam [Fri, 25 Jan 2008 00:40:42 +0000 (01:40 +0100)]
Fix lookup_sids to detect unix_groups and unix_users domain sids.

This fixes panics in wbcLookupRids when 1-2-22 was passed as a
domain sid.

Michael

16 years agoAdd a debug message: show the sid lookup_sid() was called for.
Michael Adam [Fri, 25 Jan 2008 00:40:01 +0000 (01:40 +0100)]
Add a debug message: show the sid lookup_sid() was called for.

Michael

16 years agoAdd debug message: show which domain_child is being forked.
Michael Adam [Fri, 25 Jan 2008 00:21:56 +0000 (01:21 +0100)]
Add debug message: show which domain_child is being forked.

Michael

16 years agoAdd a debug message to lookup_rids() printing the domain SID.
Michael Adam [Thu, 24 Jan 2008 22:44:05 +0000 (23:44 +0100)]
Add a debug message to lookup_rids() printing the domain SID.

This is to ease debugging. I sporadically get panics that are
apparently due to NULL domain sid passed to lookup_rids somewhere.

Michael

16 years agoAdd a debug message winbindd_can_contact_domain()
Michael Adam [Thu, 24 Jan 2008 21:15:33 +0000 (22:15 +0100)]
Add a debug message winbindd_can_contact_domain()

explaining the reason for failure.

Michael

16 years agoFix assignment to request->data.init_conn.is_primary in init_child_connection().
Michael Adam [Thu, 24 Jan 2008 21:47:49 +0000 (22:47 +0100)]
Fix assignment to request->data.init_conn.is_primary in init_child_connection().

The present assignment
"request->data.init_conn.is_primary = domain->internal ? False : True"
simply feels wrong. This seems to be the thing right to do:
"request->data.init_conn.is_primary = domain->primary ? true : false".

The question is: Does this have any purpose at all?
data.init_conn.is_primary seems to be used nowhere
in the whole code at all.

Is it (still) needed?

Michael

16 years agoMerge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Jeremy Allison [Fri, 25 Jan 2008 00:16:40 +0000 (16:16 -0800)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test

16 years agoMake explicit in debug we're ignoring flags from the parent SD.
Jeremy Allison [Fri, 25 Jan 2008 00:13:53 +0000 (16:13 -0800)]
Make explicit in debug we're ignoring flags from the parent SD.
Jeremy

16 years agoTrying to avoid defining new SAMR acct creation flags when we already have them with...
Günther Deschner [Fri, 25 Jan 2008 00:00:51 +0000 (01:00 +0100)]
Trying to avoid defining new SAMR acct creation flags when we already have them with different
names. Matt, Jeremy, please check.

Guenther

16 years agoRe-run make idl.
Günther Deschner [Thu, 24 Jan 2008 23:11:58 +0000 (00:11 +0100)]
Re-run make idl.

Guenther

16 years agoRename samr_*AccessMask bitfields to start with SAMR_.
Günther Deschner [Thu, 24 Jan 2008 22:52:16 +0000 (23:52 +0100)]
Rename samr_*AccessMask bitfields to start with SAMR_.

Guenther

16 years agoAdd WERR_INVALID_COMPUTER_NAME.
Günther Deschner [Thu, 24 Jan 2008 22:39:38 +0000 (23:39 +0100)]
Add WERR_INVALID_COMPUTER_NAME.

Guenther

16 years agoAdd cmd_netlogon_gettrustrid() to rpcclient.
Günther Deschner [Thu, 24 Jan 2008 22:38:43 +0000 (23:38 +0100)]
Add cmd_netlogon_gettrustrid() to rpcclient.

Guenther

16 years agomake idl.
Günther Deschner [Thu, 24 Jan 2008 22:37:57 +0000 (23:37 +0100)]
make idl.

Guenther

16 years agoAdd IDL for netr_LogonGetTrustRid.
Günther Deschner [Thu, 24 Jan 2008 22:35:02 +0000 (23:35 +0100)]
Add IDL for netr_LogonGetTrustRid.

Guenther

16 years agoAdd debug messages to trace this if needed.
Jeremy Allison [Thu, 24 Jan 2008 21:27:00 +0000 (13:27 -0800)]
Add debug messages to trace this if needed.
Jeremy.

16 years agoThe checks for OI and CI were just wrong.... Fix them. Thanks to
Jeremy Allison [Thu, 24 Jan 2008 21:06:11 +0000 (13:06 -0800)]
The checks for OI and CI were just wrong.... Fix them. Thanks to
Jim for testing this.
Jeremy.

16 years agoFirst part of fix for bug #4929 - worked out by jmcd.
Jeremy Allison [Thu, 24 Jan 2008 20:59:08 +0000 (12:59 -0800)]
First part of fix for bug #4929 - worked out by jmcd.
Cope with protected ACL set correctly.
Jeremy.

16 years agoFix winbindd build w/o ADS.
Günther Deschner [Thu, 24 Jan 2008 16:39:29 +0000 (17:39 +0100)]
Fix winbindd build w/o ADS.

Guenther

16 years agoFix Coverity ID 454
Volker Lendecke [Thu, 24 Jan 2008 15:12:42 +0000 (16:12 +0100)]
Fix Coverity ID 454

16 years agoFix Coverity ID 463
Volker Lendecke [Thu, 24 Jan 2008 14:57:00 +0000 (15:57 +0100)]
Fix Coverity ID 463

16 years agoFix Coverity ID 465
Volker Lendecke [Thu, 24 Jan 2008 14:52:45 +0000 (15:52 +0100)]
Fix Coverity ID 465

16 years agoAdd winbind_msg_dump_domain_list to winbindd.
Günther Deschner [Thu, 24 Jan 2008 15:19:58 +0000 (16:19 +0100)]
Add winbind_msg_dump_domain_list to winbindd.

Guenther

16 years agoAdd winbindd debugging ndr_print helpers.
Günther Deschner [Thu, 24 Jan 2008 15:10:18 +0000 (16:10 +0100)]
Add winbindd debugging ndr_print helpers.

Guenther

16 years agoAdd dump-domain-list command for debugging winbindd's domain_list.
Günther Deschner [Thu, 24 Jan 2008 15:09:20 +0000 (16:09 +0100)]
Add dump-domain-list command for debugging winbindd's domain_list.

Guenther

16 years agorerun 'make idl'
Stefan Metzmacher [Thu, 24 Jan 2008 14:12:00 +0000 (15:12 +0100)]
rerun 'make idl'

metze

16 years agonetlogon.idl: add some MSV1_0_ values from samba3 and use a bitmap32
Stefan Metzmacher [Thu, 24 Jan 2008 14:17:06 +0000 (15:17 +0100)]
netlogon.idl: add some MSV1_0_ values from samba3 and use a bitmap32

metze
(cherry picked from commit 7222edb9cde5cdeb9d065e890775a7254b26648f)

16 years agoRe-run make idl and use generated ndr based on samba4 security.idl (except for DOM_SID).
Günther Deschner [Thu, 24 Jan 2008 12:53:36 +0000 (13:53 +0100)]
Re-run make idl and use generated ndr based on samba4 security.idl (except for DOM_SID).

Guenther

16 years agoMerge over security.idl from samba4.
Günther Deschner [Thu, 24 Jan 2008 12:45:38 +0000 (13:45 +0100)]
Merge over security.idl from samba4.

Guenther

16 years agoFix samr_EnumDomainUsers in samba3, must not be a ref pointer here.
Günther Deschner [Thu, 24 Jan 2008 10:44:29 +0000 (11:44 +0100)]
Fix samr_EnumDomainUsers in samba3, must not be a ref pointer here.

Guenther

16 years agonetlogon.idl: make use of bitmap samr_GroupAttrs
Stefan Metzmacher [Thu, 24 Jan 2008 09:24:41 +0000 (10:24 +0100)]
netlogon.idl: make use of bitmap samr_GroupAttrs

metze

(from v4-0-test 6d68161e676d381600c77c3f862bd7e013968724)

16 years agonetlogon.idl: remove unused netr_GroupsMembership structure
Stefan Metzmacher [Thu, 24 Jan 2008 09:22:45 +0000 (10:22 +0100)]
netlogon.idl: remove unused netr_GroupsMembership structure

We have samr_RidWithAttribute and use that in all cases.

metze
(cherry picked from commit 3c5bae2249d01213ff4bd7df2b4e3ac04da4a52d)

16 years agoMore read_data -> read_socket_with_timeout
Volker Lendecke [Wed, 23 Jan 2008 16:37:59 +0000 (17:37 +0100)]
More read_data -> read_socket_with_timeout

16 years agoMerge branch 'setxattr-dos-mode' into v3-2-test
Derrell Lipman [Thu, 24 Jan 2008 01:50:24 +0000 (20:50 -0500)]
Merge branch 'setxattr-dos-mode' into v3-2-test

16 years agoAllow clearing all settable DOS mode bits. A mode value of zero is ignored by
Derrell Lipman [Thu, 24 Jan 2008 01:44:54 +0000 (20:44 -0500)]
Allow clearing all settable DOS mode bits.  A mode value of zero is ignored by
Windows.  If the requested mode is zero, we instead send the appropriate one
of 0x80 (NORMAL) or 0x10 (DIRECTORY).

Thanks Jeremy!

Derrell

16 years agoDon't leak memory in error path.
Jeremy Allison [Wed, 23 Jan 2008 23:23:16 +0000 (15:23 -0800)]
Don't leak memory in error path.
Jeremy.

16 years agoUse strchr_m in seaching for '.' in the hostname to make sure we're mb safe.
Jeremy Allison [Wed, 23 Jan 2008 23:00:40 +0000 (15:00 -0800)]
Use strchr_m in seaching for '.' in the hostname to make sure we're mb safe.
Jeremy.

16 years agoFix Windows 2008 (Longhorn) join.
Andreas Schneider [Thu, 17 Jan 2008 10:35:40 +0000 (11:35 +0100)]
Fix Windows 2008 (Longhorn) join.

During 'net ads join' the cli->desthost is a hostname (e.g.
rupert.galaxy.site). Check if we have a hostname and use only the
first part, the machine name, of the string.

16 years agoWindows 2008 (Longhorn) auth2 flag fixes.
Andreas Schneider [Thu, 17 Jan 2008 09:11:11 +0000 (10:11 +0100)]
Windows 2008 (Longhorn) auth2 flag fixes.

Interop fixes for AD specific flags. Original patch from Todd Stetcher.

16 years agoForward ported version of Matt Geddes <musicalcarrion@gmail.com>
Jeremy Allison [Wed, 23 Jan 2008 21:54:02 +0000 (13:54 -0800)]
Forward ported version of Matt Geddes <musicalcarrion@gmail.com>
patch for adding acct_flags to rpccli_samr_create_dom_user().
Jerry please test.
Jeremy.

16 years agoread_socket_with_timeout has timeout=0 handling
Volker Lendecke [Wed, 23 Jan 2008 15:42:31 +0000 (16:42 +0100)]
read_socket_with_timeout has timeout=0 handling

16 years agostrtok -> strtok_r
Volker Lendecke [Wed, 23 Jan 2008 10:04:10 +0000 (11:04 +0100)]
strtok -> strtok_r

16 years agoFix panic: Don't free the logfilename in winbind_child_died().
Michael Adam [Wed, 23 Jan 2008 13:33:22 +0000 (14:33 +0100)]
Fix panic: Don't free the logfilename in winbind_child_died().

The child struct is immediately reused, and this results
in a panic when child->logfilename == NULL.

Michael

16 years agoInitialize _domain_list to NULL.
Michael Adam [Wed, 23 Jan 2008 12:52:42 +0000 (13:52 +0100)]
Initialize _domain_list to NULL.

Just to be sure the "if (!_domain_list)" in domain_list() test always works.

Michael

16 years agoFix get_trust_creds() to return always an upper-cased krb5 principal (this
Günther Deschner [Wed, 23 Jan 2008 11:03:51 +0000 (12:03 +0100)]
Fix get_trust_creds() to return always an upper-cased krb5 principal (this
fixes winbind krb5 session at least with heimdal).

Guenther

16 years agoRemove two unused variables
Volker Lendecke [Wed, 23 Jan 2008 09:33:36 +0000 (10:33 +0100)]
Remove two unused variables

16 years agoFix tab_depth: it should not create an extra debug header.
Michael Adam [Tue, 22 Jan 2008 23:30:28 +0000 (00:30 +0100)]
Fix tab_depth: it should not create an extra debug header.

In pstring removal 4ae4b23586, the behaviour of tab_depth was
changed to create an extra debug header (by using the DEBUGLVL
macro).

This extracts the debug level check from DEBUGLVL into
a macro CHECK_DEBUGLVL without the debug header creation
and uses this instead of DEBUGLVL in tab_depth.

Michael

16 years agoMerge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
Andrew Tridgell [Wed, 23 Jan 2008 02:08:14 +0000 (13:08 +1100)]
Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test

16 years agoAdded PFIF notice to Samba 3.2 tree
Andrew Tridgell [Wed, 23 Jan 2008 02:07:33 +0000 (13:07 +1100)]
Added PFIF notice to Samba 3.2 tree

16 years agoGet Samba version or capability information from Windows
Corinna Vinschen [Tue, 22 Jan 2008 15:38:00 +0000 (16:38 +0100)]
Get Samba version or capability information from Windows

On Jan 22 13:31, Volker Lendecke wrote:
> On Tue, Jan 22, 2008 at 11:33:17AM +0100, Corinna Vinschen wrote:
> > Right.  I changed samba_gitcommitdate from time_t to NTTIME and shortened
> > samba_version_string to 28 bytes.  New patch below.
>
> Ok, pushed with some modifications. You might want to review
> that.

Reviewed and tested.  Looks good, thank you!

Below you'll find a tiny patch to add the git commit date.  It seems
I simply missed its existence in version.h :(  Tested on Windows XP.

Thanks,
Corinna

* source/smbd/trans2.c (samba_extended_info_version): Fill out
samba_gitcommitdate member with GIT commit timestamp.

16 years agoreplace svn references with git ones in Readme
Volker Lendecke [Tue, 22 Jan 2008 12:42:44 +0000 (13:42 +0100)]
replace svn references with git ones in Readme

16 years agoMove samba_extended_info_version to smbd/trans2.c
Volker Lendecke [Tue, 22 Jan 2008 12:00:22 +0000 (13:00 +0100)]
Move samba_extended_info_version to smbd/trans2.c

This is right now only used there, and in version.c it gave linker errors
because some binaries (e.g. smbmnt) don't link in time.o

16 years agoAvoid use of uninitialized memory
Volker Lendecke [Tue, 22 Jan 2008 11:46:51 +0000 (12:46 +0100)]
Avoid use of uninitialized memory

16 years agoGet Samba version or capability information from Windows
Corinna Vinschen [Tue, 22 Jan 2008 10:33:17 +0000 (11:33 +0100)]
Get Samba version or capability information from Windows

On Jan 21 16:18, Danilo Almeida wrote:
> Corina wrote:
>
> > + time_t samba_gitcommitdate;
>
> And:
>
> > +   SIVAL(pdata,28,extended_info.samba_gitcommitdate);
> > +   memcpy(pdata+32,extended_info.samba_version_string,32);
>
> Note that you are dropping bits on a system w/64-bit time_t, and that this has the 2038 problem.

Right.  I changed samba_gitcommitdate from time_t to NTTIME and shortened
samba_version_string to 28 bytes.  New patch below.

Thanks,
Corinna

16 years agoHide streams from the EA API
Volker Lendecke [Mon, 21 Jan 2008 19:24:23 +0000 (20:24 +0100)]
Hide streams from the EA API

16 years agolibreplace: getpwent_r/getgrent_r on IRIX are similar to solaris but use size_t
Stefan Metzmacher [Tue, 22 Jan 2008 11:21:55 +0000 (12:21 +0100)]
libreplace: getpwent_r/getgrent_r on IRIX are similar to solaris but use size_t

metze

16 years agoFix a ton of IBM checker uninitialized variable warnings
Volker Lendecke [Tue, 22 Jan 2008 08:22:14 +0000 (09:22 +0100)]
Fix a ton of IBM checker uninitialized variable warnings

SET_STAT_INVALID only sets nlink, not the other fields

We might consider to change SET_STAT_INVALID to always do ZERO_STRUCT

16 years agoFix get_ea_names_from_file for many EAs
Volker Lendecke [Tue, 22 Jan 2008 08:18:40 +0000 (09:18 +0100)]
Fix get_ea_names_from_file for many EAs

Found by the IBM checker

16 years agoFix a segfault
Volker Lendecke [Tue, 22 Jan 2008 08:13:25 +0000 (09:13 +0100)]
Fix a segfault

Found by the IBM checker.

Jeremy, you changed this from 'dirname == 0' which does not make sense at all
in the old code to '!dirname == 0' which from my point of view makes even less
sense, because the precedence of ! is according to Harbison/Steele higher than
the precedence of ==. Please check that the code now actually does what it's
supposed to do.

Thanks!

16 years agoAdd another check for talloc failure to libnet_conf
Michael Adam [Mon, 21 Jan 2008 14:35:09 +0000 (15:35 +0100)]
Add another check for talloc failure to libnet_conf

Michael

16 years agoFix formatting of multi_sz registry values.
Michael Adam [Mon, 21 Jan 2008 14:31:57 +0000 (15:31 +0100)]
Fix formatting of multi_sz registry values.

Don't print only the last component.

Michael

16 years agoUse talloc_stackframe() for temporary contexts throughout libnet_conf.c
Michael Adam [Mon, 21 Jan 2008 14:28:04 +0000 (15:28 +0100)]
Use talloc_stackframe() for temporary contexts throughout libnet_conf.c

Michael

16 years agoAdd a check for talloc failure. - Pointed out by Volker.
Michael Adam [Mon, 21 Jan 2008 14:24:23 +0000 (15:24 +0100)]
Add a check for talloc failure. - Pointed out by Volker.

Michael

16 years agoFix two debug messages.
Michael Adam [Mon, 21 Jan 2008 14:14:16 +0000 (15:14 +0100)]
Fix two debug messages.

Michael

16 years agoAttempt to fix the darwin build
Volker Lendecke [Mon, 21 Jan 2008 17:07:38 +0000 (18:07 +0100)]
Attempt to fix the darwin build

16 years agoutil_sock: Don't return a pointer to freed memory.
Kai Blin [Mon, 21 Jan 2008 17:01:55 +0000 (18:01 +0100)]
util_sock: Don't return a pointer to freed memory.

Fix a bug in my bugfix. Thanks to vl for spotting that one.