svn commit: samba r6057 - in branches/SAMBA_3_0/source/smbd: .

jra at samba.org jra at samba.org
Fri Mar 25 01:36:39 GMT 2005


Author: jra
Date: 2005-03-25 01:36:39 +0000 (Fri, 25 Mar 2005)
New Revision: 6057

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6057

Log:
Don't put the assert in the wrong place :-).
Jeremy.

Modified:
   branches/SAMBA_3_0/source/smbd/posix_acls.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/posix_acls.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/posix_acls.c	2005-03-25 01:30:22 UTC (rev 6056)
+++ branches/SAMBA_3_0/source/smbd/posix_acls.c	2005-03-25 01:36:39 UTC (rev 6057)
@@ -3888,12 +3888,11 @@
 		}
 	}
 
-
-  check_stat:
-
 	/* If we get here we know ret == 0. */
 	SMB_ASSERT(ret == 0);
 
+  check_stat:
+
 	for (i = 0; i < current_user.ngroups; i++) {
 		if (current_user.groups[i] == psbuf->st_gid) {
 			ret = (psbuf->st_mode & S_IWGRP) ? 1 : 0;
@@ -3904,7 +3903,7 @@
 	}
 
 	if (i == current_user.ngroups) {
-		SMB_ASSERT(ret == 0);
+		SMB_ASSERT(ret != 1);
 		DEBUG(10,("check_posix_acl_group_write: file %s \
 failed to match on user or group in token.\n", fname ));
 	}



More information about the samba-cvs mailing list