From c5696f60193c31d98f1e313145b3611de3d34906 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 8 May 2008 13:40:26 +0300 Subject: [PATCH] Oops, matchpathcon() wants st_mode, not the entire struct stat --- rpmdb/rpmdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpmdb/rpmdb.c b/rpmdb/rpmdb.c index 2bff34e..72d86ad 100644 --- a/rpmdb/rpmdb.c +++ b/rpmdb/rpmdb.c @@ -3302,7 +3302,7 @@ static int rpmdbMoveDatabase(const char * prefix, if (selinux) { security_context_t scon = NULL; - if (matchpathcon(dest, &st, &scon) != -1) { + if (matchpathcon(dest, st.st_mode, &scon) != -1) { (void) setfilecon(dest, scon); freecon(scon); } -- 2.7.4