[PATCH] src: fix typo in fixup_name()

Elizaveta Tereshkina posted 1 patch 1 month, 3 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20250717162435.173293-1-etereshkina@astralinux.ru
scripts/check-aclrules.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] src: fix typo in fixup_name()
Posted by Elizaveta Tereshkina 1 month, 3 weeks ago
Similar branches in the if-else structure look like bad copy-paste.
Fix the typo.

Fixes: a559ffec44 (src: rewrite ACL rule checker in Python)
Signed-off-by: Elizaveta Tereshkina <etereshkina@astralinux.ru>
---
 scripts/check-aclrules.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/check-aclrules.py b/scripts/check-aclrules.py
index ed6805058b..13aed99243 100755
--- a/scripts/check-aclrules.py
+++ b/scripts/check-aclrules.py
@@ -88,7 +88,7 @@ def fixup_name(name):
     elif name.endswith("Mac"):
         name = name[:-3] + "MAC"
     elif name.endswith("Cpu"):
-        name = name[:-3] + "MAC"
+        name = name[:-3] + "CPU"
     elif name.endswith("Os"):
         name = name[:-2] + "OS"
     elif name.endswith("Nmi"):
-- 
2.39.2
Re: [PATCH] src: fix typo in fixup_name()
Posted by Ján Tomko via Devel 1 month, 3 weeks ago
On a Thursday in 2025, Elizaveta Tereshkina wrote:
>Similar branches in the if-else structure look like bad copy-paste.
>Fix the typo.
>
>Fixes: a559ffec44 (src: rewrite ACL rule checker in Python)
>Signed-off-by: Elizaveta Tereshkina <etereshkina@astralinux.ru>
>---
> scripts/check-aclrules.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano