3b5b188591
- selinux_check_passwd_access_internal(): respect deny_unknown - Silence -Wstringop-overflow warning from gcc 10.3.1 - Fixed misc compiler and static analyzer findings Resolves: rhbz#1938789
36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
From 700c829317e44f194f69c785144423d10b14c21d Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@googlemail.com>
|
|
Date: Mon, 3 May 2021 17:11:31 +0200
|
|
Subject: [PATCH] libselinux: label_file.c: fix indent
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Found by clang-tidy.
|
|
|
|
libselinux/src/label_file.c:374:4: warning: different indentation for 'if' and corresponding 'else' [readability-misleading-indentation]
|
|
else
|
|
^
|
|
|
|
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
|
|
---
|
|
libselinux/src/label_file.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/libselinux/src/label_file.c b/libselinux/src/label_file.c
|
|
index 4268b52c84cc..56f499faef97 100644
|
|
--- a/libselinux/src/label_file.c
|
|
+++ b/libselinux/src/label_file.c
|
|
@@ -371,7 +371,7 @@ end_arch_check:
|
|
|
|
if (stem_id < 0 || stem_id >= (int32_t)stem_map_len)
|
|
spec->stem_id = -1;
|
|
- else
|
|
+ else
|
|
spec->stem_id = stem_map[stem_id];
|
|
|
|
/* retrieve the hasMetaChars bit */
|
|
--
|
|
2.32.0.rc1
|
|
|