1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

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

Jeremy.
This commit is contained in:
Jeremy Allison 2005-03-25 01:36:39 +00:00 committed by Gerald (Jerry) Carter
parent 81fb337286
commit 6609b209f5

View File

@ -3888,12 +3888,11 @@ match on group %u -> can write.\n", fname, (unsigned int)*pgid ));
}
}
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 @@ match on owning group %u -> %s.\n", fname, (unsigned int)psbuf->st_gid, ret ? "c
}
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 ));
}