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

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