Blame 0001-Don-t-warn-about-missing-user-group-on-skipped-files.patch

Florian Festi 8126ee
From 6c66abd34cccbb5b3c063f8f613e0c2faffc415f Mon Sep 17 00:00:00 2001
Florian Festi 8126ee
From: Panu Matilainen <pmatilai@redhat.com>
Florian Festi 8126ee
Date: Wed, 13 Dec 2023 11:57:50 +0200
Florian Festi 8126ee
Subject: [PATCH] Don't warn about missing user/group on skipped files
Florian Festi 8126ee
Florian Festi 8126ee
There's no reason to complain about missing user/group for entities
Florian Festi 8126ee
we don't create at all. It's cosmetical only, but "regressed" in the
Florian Festi 8126ee
4.17 fsm robustness rewrite.
Florian Festi 8126ee
Florian Festi 8126ee
Reported in https://issues.redhat.com/browse/RHEL-18037
Florian Festi 8126ee
---
Florian Festi 8126ee
 lib/fsm.c | 2 +-
Florian Festi 8126ee
 1 file changed, 1 insertion(+), 1 deletion(-)
Florian Festi 8126ee
Florian Festi 8126ee
diff --git a/lib/fsm.c b/lib/fsm.c
Florian Festi 8126ee
index 2189bd84c..a54e43bae 100644
Florian Festi 8126ee
--- a/lib/fsm.c
Florian Festi 8126ee
+++ b/lib/fsm.c
Florian Festi 8126ee
@@ -903,7 +903,7 @@ int rpmPackageFilesInstall(rpmts ts, rpmte te, rpmfiles files,
Florian Festi 8126ee
 	fp->fpath = fsmFsPath(fi, fp->suffix);
Florian Festi 8126ee
 
Florian Festi 8126ee
 	/* Remap file perms, owner, and group. */
Florian Festi 8126ee
-	rc = rpmfiStat(fi, 1, &fp->sb);
Florian Festi 8126ee
+	rc = rpmfiStat(fi, (fp->skip == 0), &fp->sb);
Florian Festi 8126ee
 
Florian Festi 8126ee
 	/* Hardlinks are tricky and handled elsewhere for install */
Florian Festi 8126ee
 	fp->setmeta = (fp->skip == 0) &&
Florian Festi 8126ee
-- 
Florian Festi 8126ee
2.43.0
Florian Festi 8126ee