Blame SOURCES/0002-getcifsacl-remove-some-dead-code.patch

4c3126
From 930b724e784c28bd1b3024f7fc6ca24cdac82a4d Mon Sep 17 00:00:00 2001
4c3126
From: Jeff Layton <jlayton@samba.org>
4c3126
Date: Wed, 9 Oct 2013 08:14:21 -0400
4c3126
Subject: [PATCH] getcifsacl: remove some dead code
4c3126
4c3126
Coverity says:
4c3126
4c3126
Error: DEADCODE (CWE-561): [#def5]
4c3126
cifs-utils-6.2/getcifsacl.c:101: assignment: Assigning: "mflags" = "false".
4c3126
cifs-utils-6.2/getcifsacl.c:109: const: At condition "mflags", the value of "mflags" must be equal to 0.
4c3126
cifs-utils-6.2/getcifsacl.c:109: dead_error_condition: The condition "mflags" cannot be true.
4c3126
cifs-utils-6.2/getcifsacl.c:110: dead_error_line: Execution cannot reach this statement "printf("|");".
4c3126
4c3126
Acked-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
4c3126
Signed-off-by: Jeff Layton <jlayton@samba.org>
4c3126
---
4c3126
 getcifsacl.c | 5 +----
4c3126
 1 file changed, 1 insertion(+), 4 deletions(-)
4c3126
4c3126
diff --git a/getcifsacl.c b/getcifsacl.c
4c3126
index 33f36b4..f08cdea 100644
4c3126
--- a/getcifsacl.c
4c3126
+++ b/getcifsacl.c
4c3126
@@ -106,10 +106,7 @@ print_ace_flags(uint8_t flags, int raw)
4c3126
 	}
4c3126
 
4c3126
 	if (flags & OBJECT_INHERIT_FLAG) {
4c3126
-		if (mflags)
4c3126
-			printf("|");
4c3126
-		else
4c3126
-			mflags = true;
4c3126
+		mflags = true;
4c3126
 		printf("OI");
4c3126
 	}
4c3126
 	if (flags & CONTAINER_INHERIT_FLAG) {
4c3126
-- 
4c3126
1.8.3.1
4c3126