From 58beb9ebc0e97568e1d91f257bd71f3bfca6deff Mon Sep 17 00:00:00 2001
From: Anastasia Belova <abelova@astralinux.ru>
Date: Wed, 6 Dec 2023 21:45:00 +0300
Subject: [PATCH] security_util: fix log in virSecurityMoveRememberedLabel
Fix incorrect log message for timestamp value.
Probably this line was copied from the check for attr.
Found by Linux Verification Center (linuxtesting.org).
Fixes: 7cfb7aab57 ("security_util: Remove stale XATTRs")
Signed-off-by: Anastasia Belova <abelova@astralinux.ru>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/security/security_util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -502,7 +502,7 @@ virSecurityMoveRememberedLabel(const char *name,
} else if (errno != ENODATA) {
virReportSystemError(errno,
_("Unable to get XATTR %1$s on %2$s"),
- attr_name, src);
+ timestamp_name, src);
return -1;
}
}
--
2.52.0.windows.1