1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-22 16:23:49 +03:00

r14418: Try and fix Coverity #39 and #40 by making the

implicit function contract explicit.
Jeremy.
This commit is contained in:
Jeremy Allison
2006-03-15 03:27:03 +00:00
committed by Gerald (Jerry) Carter
parent 7fc61f5a63
commit 6de5e9ae46

View File

@@ -4826,11 +4826,19 @@ cacl_set(TALLOC_CTX *ctx,
CONST_DISCARD(char *, the_acl));
if (!sd) {
errno = EINVAL;
return -1;
errno = EINVAL;
return -1;
}
}
/* SMBC_XATTR_MODE_REMOVE_ALL is the only caller
that doesn't deref sd */
if (!sd && (mode != SMBC_XATTR_MODE_REMOVE_ALL)) {
errno = EINVAL;
return -1;
}
/* The desired access below is the only one I could find that works
with NT4, W2KP and Samba */