dcavalca / rpms / rpm

Forked from rpms/rpm a year ago
Clone

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

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