[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-5362-gd984b39

Karolin Seeger kseeger at samba.org
Fri Oct 2 04:26:48 MDT 2009


The branch, v3-3-test has been updated
       via  d984b39d971b7fc8f66e6c5376a2b7a98dfc20d8 (commit)
       via  e3601a43421cc51b2b4b6413f547daf6ea9b0b41 (commit)
      from  30cca93674d0dad15ad0ccfaf0d81f94d7d17b4a (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit d984b39d971b7fc8f66e6c5376a2b7a98dfc20d8
Author: Jeremy Allison <jra at samba.org>
Date:   Fri Oct 2 12:23:32 2009 +0200

    Second part of a fix for bug #6235.
    
    Domain enumeration breaks if master browser has space in name.

commit e3601a43421cc51b2b4b6413f547daf6ea9b0b41
Author: Derrell Lipman <derrell.lipman at unwireduniverse.com>
Date:   Fri Oct 2 12:22:25 2009 +0200

    Fix bug #6532.
    
    Domain enumeration breaks if master browser has space in name.

-----------------------------------------------------------------------

Summary of changes:
 source/libsmb/libsmb_dir.c |    2 +-
 source/libsmb/namequery.c  |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libsmb/libsmb_dir.c b/source/libsmb/libsmb_dir.c
index 8846abb..d238ab9 100644
--- a/source/libsmb/libsmb_dir.c
+++ b/source/libsmb/libsmb_dir.c
@@ -625,7 +625,7 @@ SMBC_opendir_ctx(SMBCCTX *context,
 				/*
 				 * Get the backup list ...
 				 */
-				if (!name_status_find(server, 0, 0,
+				if (!name_status_find(server, 0x20, 0x20,
                                                       &rem_ss, buserver)) {
 
                                         DEBUG(0,("Could not get name of "
diff --git a/source/libsmb/namequery.c b/source/libsmb/namequery.c
index cf8c20e..66e6910 100644
--- a/source/libsmb/namequery.c
+++ b/source/libsmb/namequery.c
@@ -408,7 +408,8 @@ bool name_status_find(const char *q_name,
 		goto done;
 
 	for (i=0;i<count;i++) {
-		if (status[i].type == type)
+                /* Find first one of the requested type that's not a GROUP. */
+		if (status[i].type == type && ! (status[i].flags & 0x80))
 			break;
 	}
 	if (i == count)


-- 
Samba Shared Repository


More information about the samba-cvs mailing list