From 4ad2c50f8f22968abe84a84ef49d37806731b20e Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Wed, 16 Feb 2022 13:58:24 +0200 Subject: setcifsacl: fix comparison of actions reported by covscan Signed-off-by: Alexander Bokovoy --- setcifsacl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setcifsacl.c b/setcifsacl.c index 9840b14..c0ecd41 100644 --- a/setcifsacl.c +++ b/setcifsacl.c @@ -1497,7 +1497,7 @@ cifsacl: numfaces = get_numfaces((struct cifs_ntsd *)attrval, attrlen, &aclptr, ace_kind); - if (!numfaces && (maction != ActAdd || maction != ActAddReorder)) { + if (!numfaces && (maction != ActAdd && maction != ActAddReorder)) { /* if we are not adding aces */ fprintf(stderr, "%s: Empty DACL\n", __func__); goto setcifsacl_facenum_ret; -- cgit v1.2.3