Rev 597: too much haste causes bugs ..... (my bug, not ronnies) in http://samba.org/~tridge/3_0-ctdb

tridge at samba.org tridge at samba.org
Sun Jun 17 01:22:10 GMT 2007


------------------------------------------------------------
revno: 597
revision-id: tridge at samba.org-20070617012205-k626bylogn6ky4tr
parent: tridge at samba.org-20070617005644-hzr9y3f2g28asx9y
committer: Andrew Tridgell <tridge at samba.org>
branch nick: s3-ctdb-tridge
timestamp: Sun 2007-06-17 11:22:05 +1000
message:
  too much haste causes bugs ..... (my bug, not ronnies)
modified:
  source/nsswitch/winbindd_util.c winbindd_util.c-20070210173807-1wjifrbwaz6xnmgl-754
=== modified file 'source/nsswitch/winbindd_util.c'
--- a/source/nsswitch/winbindd_util.c	2007-06-17 00:56:44 +0000
+++ b/source/nsswitch/winbindd_util.c	2007-06-17 01:22:05 +0000
@@ -104,9 +104,9 @@
 	const char **ignored_domains, **dom;
 	
 	ignored_domains = lp_parm_string_list(-1, "winbind", "ignore domains", NULL);
-	for (dom=ignored_domains; *dom; dom++) {
-		if (gen_fnmatch(*dom, domain_name) != 0) {
-			DEBUG(2,("Ignoring domain '%s'\n", *dom));
+	for (dom=ignored_domains; dom && *dom; dom++) {
+		if (gen_fnmatch(*dom, domain_name) == 0) {
+			DEBUG(2,("Ignoring domain '%s'\n", domain_name));
 			return NULL;
 		}
 	}



More information about the samba-cvs mailing list